22 lines
770 B
Diff
22 lines
770 B
Diff
|
# HG changeset patch
|
||
|
# User Keir Fraser <keir.fraser@citrix.com>
|
||
|
# Date 1205838260 0
|
||
|
# Node ID 2ed94b9b10b3770d7bfd7346f532b70e70be35c1
|
||
|
# Parent 3ab6635f783d61e1f73ccf26074f80d8e9259a6d
|
||
|
Add periodic fflush to xentop batch mode.
|
||
|
From: Yusuke KANEKI <Kaneki.Yusuke@ea.MitsubishiElectric.co.jp>
|
||
|
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
|
||
|
|
||
|
Index: xen-3.2-testing/tools/xenstat/xentop/xentop.c
|
||
|
===================================================================
|
||
|
--- xen-3.2-testing.orig/tools/xenstat/xentop/xentop.c
|
||
|
+++ xen-3.2-testing/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;
|