ia64/xen-unstable

changeset 13408:bad268302c58

Fix trivial bug in xentop main loop.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Fri Jan 12 14:46:21 2007 +0000 (2007-01-12)
parents d2505c4ca32b
children 3efc6a135cc3
files tools/xenstat/xentop/xentop.c
line diff
     1.1 --- a/tools/xenstat/xentop/xentop.c	Fri Jan 12 14:43:50 2007 +0000
     1.2 +++ b/tools/xenstat/xentop/xentop.c	Fri Jan 12 14:46:21 2007 +0000
     1.3 @@ -1067,9 +1067,9 @@ int main(int argc, char **argv)
     1.4  				gettimeofday(&curtime, NULL);
     1.5  				top();
     1.6  				oldtime = curtime;
     1.7 -				sleep(delay);
     1.8  				if ((!loop) && !(--iterations))
     1.9  					break;
    1.10 +				sleep(delay);
    1.11  			} while (1);
    1.12  	}
    1.13