diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-11-01 19:25:33 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-11-01 19:25:33 +0000 |
commit | 8491c4edaa7998409eebaffe5de3de3fbf2ee3e9 (patch) | |
tree | 2b18d0bfde7a2aec5edf10ef6c5cb3c9d35f84d7 /usr.bin/top/top.c | |
parent | ba8a18eb95f163c5841bb4370de02e07b08340c2 (diff) |
make check on -s and interactive s consistent; from Tilo Stritzky
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 a7dde5aa677..1587907c392 100644 --- a/usr.bin/top/top.c +++ b/usr.bin/top/top.c @@ -1,4 +1,4 @@ -/* $OpenBSD: top.c,v 1.58 2007/10/16 07:33:08 otto Exp $ */ +/* $OpenBSD: top.c,v 1.59 2007/11/01 19:25:32 otto Exp $ */ /* * Top users/processes display for Unix @@ -201,7 +201,7 @@ parseargs(int ac, char **av) case 's': delay = strtod(optarg, &endp); - if (delay > 0 && delay <= 1000000 && *endp == '\0') + if (delay >= 0 && delay <= 1000000 && *endp == '\0') break; warnx("warning: delay should be a non-negative number" |