[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Fix trivial bug in xentop main loop.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1168613181 0
# Node ID bad268302c58799d0eefc3ec30c3220dbc979b74
# Parent  d2505c4ca32b10ed0f80eac8a1ed187b341a9af8
Fix trivial bug in xentop main loop.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/xenstat/xentop/xentop.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r d2505c4ca32b -r bad268302c58 tools/xenstat/xentop/xentop.c
--- a/tools/xenstat/xentop/xentop.c     Fri Jan 12 14:43:50 2007 +0000
+++ b/tools/xenstat/xentop/xentop.c     Fri Jan 12 14:46:21 2007 +0000
@@ -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);
        }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.