Merge pull request #8 from oalbrigt/remove-delay-from-status-monitor-list

Remove delay from the status, monitor and list functions
This commit is contained in:
Ryan McCabe 2016-05-09 10:53:10 -04:00
commit da1ef15db0

View File

@ -119,7 +119,10 @@ main(int argc, char **argv)
return 0;
}
if (args.delay > 0)
if (args.delay > 0 &&
args.op != FENCE_STATUS &&
args.op != FENCE_DEVSTATUS &&
args.op != FENCE_HOSTLIST)
sleep(args.delay);
switch(args.mode) {