From: kaf24@firebug.cl.cam.ac.uk Date: Wed, 28 Jun 2006 09:24:05 +0000 (+0100) Subject: [XENTOP] Fix CPU percentage display in batch mode. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15913^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=73e44d2f08a90e54f68be359c0a89e9a4855dcee;p=xen.git [XENTOP] Fix CPU percentage display in batch mode. From: shaocyou Signed-off-by: Keir Fraser --- 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;