direct-io.hg

changeset 10513:7a7066ae2e77

[XENTOP] Fix CPU percentage display in batch mode.
From: shaocyou <shaocyou@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Jun 28 10:24:05 2006 +0100 (2006-06-28)
parents e5cf18c05e8b
children b217e03e1db5
files tools/xenstat/xentop/xentop.c
line diff
     1.1 --- a/tools/xenstat/xentop/xentop.c	Wed Jun 28 10:22:13 2006 +0100
     1.2 +++ b/tools/xenstat/xentop/xentop.c	Wed Jun 28 10:24:05 2006 +0100
     1.3 @@ -904,6 +904,7 @@ int main(int argc, char **argv)
     1.4  			do {
     1.5  				gettimeofday(&curtime, NULL);
     1.6  				top();
     1.7 +				oldtime = curtime;
     1.8  				sleep(delay);
     1.9  				if ((!loop) && !(--iterations))
    1.10  					break;