[XENTOP] Fix CPU percentage display in batch mode.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 28 Jun 2006 09:24:05 +0000 (10:24 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 28 Jun 2006 09:24:05 +0000 (10:24 +0100)
From: shaocyou <shaocyou@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
tools/xenstat/xentop/xentop.c

index adae75188291deb800b9494c62ef3a9d257fda08..34e8fc3e2437bc2cb6787add8efff08d05327766 100644 (file)
@@ -904,6 +904,7 @@ int main(int argc, char **argv)
                        do {
                                gettimeofday(&curtime, NULL);
                                top();
+                               oldtime = curtime;
                                sleep(delay);
                                if ((!loop) && !(--iterations))
                                        break;