Commit f50332c5 authored by Eric Dumazet's avatar Eric Dumazet Committed by Stephen Hemminger

lnstat : force a flush before sleep

Hi Stephen

This small patch allows to use lnstat/rtstat with a pipe output, without a full bufferisation.

Thank you
Eric
Signed-off-by: default avatarStephen Hemminger <shemminger@linux-foundation.org>
parent 13010712
......@@ -328,6 +328,7 @@ int main(int argc, char **argv)
print_hdr(stdout, header);
lnstat_update(lnstat_files);
print_line(stdout, lnstat_files, &fp);
fflush(stdout);
sleep(interval);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment