From: Keir Fraser Date: Tue, 18 Mar 2008 11:04:20 +0000 (+0000) Subject: Add periodic fflush to xentop batch mode. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14247^2~60 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2376142a75e2e53d5f1a8b829fdda87d667f172e;p=xen.git Add periodic fflush to xentop batch mode. From: Yusuke KANEKI Signed-off-by: Keir Fraser --- diff --git a/tools/xenstat/xentop/xentop.c b/tools/xenstat/xentop/xentop.c index 5e1f5ef8d1..52fb343376 100644 --- a/tools/xenstat/xentop/xentop.c +++ b/tools/xenstat/xentop/xentop.c @@ -1121,6 +1121,7 @@ int main(int argc, char **argv) do { gettimeofday(&curtime, NULL); top(); + fflush(stdout); oldtime = curtime; if ((!loop) && !(--iterations)) break;