From 73e44d2f08a90e54f68be359c0a89e9a4855dcee Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Wed, 28 Jun 2006 10:24:05 +0100 Subject: [PATCH] [XENTOP] Fix CPU percentage display in batch mode. From: shaocyou Signed-off-by: Keir Fraser --- tools/xenstat/xentop/xentop.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2