summaryrefslogtreecommitdiff
path: root/usr.bin/top/top.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/top/top.c')
-rw-r--r--usr.bin/top/top.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/top/top.c b/usr.bin/top/top.c
index 03d7329c6b3..7d914001184 100644
--- a/usr.bin/top/top.c
+++ b/usr.bin/top/top.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: top.c,v 1.63 2007/11/22 11:01:04 otto Exp $ */
+/* $OpenBSD: top.c,v 1.64 2007/11/27 13:19:16 otto Exp $ */
/*
* Top users/processes display for Unix
@@ -671,7 +671,8 @@ rundisplay(void)
putr();
} else if (i == 0)
display_header(No);
- else if ((i > topn || i == -1) && topn == 0) {
+ else if ((i > topn || i == Infinity)
+ && topn == 0) {
/* redraw the header */
display_header(Yes);
}