diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-06-28 10:24:05 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-06-28 10:24:05 +0100 |
commit | 73e44d2f08a90e54f68be359c0a89e9a4855dcee (patch) | |
tree | 3100731a426b8553b8e62e9285c88eecc9d44ccf /tools/xenstat | |
parent | d3ecb7e352c7e598adbf15d21c64cd60bbd322ed (diff) | |
download | xen-73e44d2f08a90e54f68be359c0a89e9a4855dcee.tar.gz xen-73e44d2f08a90e54f68be359c0a89e9a4855dcee.tar.bz2 xen-73e44d2f08a90e54f68be359c0a89e9a4855dcee.zip |
[XENTOP] Fix CPU percentage display in batch mode.
From: shaocyou <shaocyou@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/xenstat')
-rw-r--r-- | tools/xenstat/xentop/xentop.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/xenstat/xentop/xentop.c b/tools/xenstat/xentop/xentop.c index adae751882..34e8fc3e24 100644 --- a/tools/xenstat/xentop/xentop.c +++ b/tools/xenstat/xentop/xentop.c @@ -904,6 +904,7 @@ int main(int argc, char **argv) do { gettimeofday(&curtime, NULL); top(); + oldtime = curtime; sleep(delay); if ((!loop) && !(--iterations)) break; |