Flush stdout after each iteration.
Without this, if output is redirected from the console, it is buffered for too long, making tool quite unusable. MFC after: 1 week Sponsored by: iXsystems, Inc.
This commit is contained in:
parent
34d5464b85
commit
fcc8734127
@ -717,6 +717,7 @@ main(int argc, char **argv)
|
||||
}
|
||||
|
||||
fprintf(stdout, "\n");
|
||||
fflush(stdout);
|
||||
ctx.flags &= ~CTLSTAT_FLAG_FIRST_RUN;
|
||||
if (count != 1)
|
||||
sleep(waittime);
|
||||
|
Loading…
Reference in New Issue
Block a user