diff options
author | lum <lum@cvs.openbsd.org> | 2010-03-22 12:20:26 +0000 |
---|---|---|
committer | lum <lum@cvs.openbsd.org> | 2010-03-22 12:20:26 +0000 |
commit | cae100898fb430efb19404c4a9f8d4453a0d1557 (patch) | |
tree | 1be879e2fb2ab68528e11739bccf4a2b2964049f /usr.bin/top/top.c | |
parent | bc4e3bb60458cc52b85ab62dc1356e6c8404ed16 (diff) |
make argument check for '-s' cli option and interactive 's' consistent. ok otto@
Diffstat (limited to 'usr.bin/top/top.c')
-rw-r--r-- | usr.bin/top/top.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/top/top.c b/usr.bin/top/top.c index baacde202f0..c7d322f3b3a 100644 --- a/usr.bin/top/top.c +++ b/usr.bin/top/top.c @@ -1,4 +1,4 @@ -/* $OpenBSD: top.c,v 1.70 2010/03/18 12:47:48 otto Exp $ */ +/* $OpenBSD: top.c,v 1.71 2010/03/22 12:20:25 lum Exp $ */ /* * Top users/processes display for Unix @@ -701,7 +701,7 @@ rundisplay(void) char *endp; double newdelay = strtod(tempbuf, &endp); - if (newdelay >= 0 && newdelay < 1000000 && + if (newdelay >= 0 && newdelay <= 1000000 && *endp == '\0') { delay = newdelay; } else { |