aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstat
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-12 14:46:21 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-12 14:46:21 +0000
commitf48232576f48eedea9a17e1e335b3d36188c8fa7 (patch)
treefc0c09d128802f57c8e6eec1efb953a8920e5109 /tools/xenstat
parent8c8d60ad1ad1d6049778a0d439d6a1c250c8bf7b (diff)
downloadxen-f48232576f48eedea9a17e1e335b3d36188c8fa7.tar.gz
xen-f48232576f48eedea9a17e1e335b3d36188c8fa7.tar.bz2
xen-f48232576f48eedea9a17e1e335b3d36188c8fa7.zip
Fix trivial bug in xentop main loop.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/xenstat')
-rw-r--r--tools/xenstat/xentop/xentop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/xenstat/xentop/xentop.c b/tools/xenstat/xentop/xentop.c
index 4b610c3668..1c0d8ac63d 100644
--- a/tools/xenstat/xentop/xentop.c
+++ b/tools/xenstat/xentop/xentop.c
@@ -1067,9 +1067,9 @@ int main(int argc, char **argv)
gettimeofday(&curtime, NULL);
top();
oldtime = curtime;
- sleep(delay);
if ((!loop) && !(--iterations))
break;
+ sleep(delay);
} while (1);
}