diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2010-02-05 10:21:11 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2010-02-05 10:21:11 +0000 |
commit | 284958ffcbd29756cfcb2aba4c07b7b036953674 (patch) | |
tree | dd6e47934dccce1837ed62b1325501e6a527ded1 /usr.bin/top/display.c | |
parent | 91c044a24f049002c4c5949dd8e1e0fc0bb3d558 (diff) |
Header_lines always has the same value as y_procs; so zap the former;
from Mark Lumsden.
Diffstat (limited to 'usr.bin/top/display.c')
-rw-r--r-- | usr.bin/top/display.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/top/display.c b/usr.bin/top/display.c index 7b2005c775f..1e527c04e98 100644 --- a/usr.bin/top/display.c +++ b/usr.bin/top/display.c @@ -1,4 +1,4 @@ -/* $OpenBSD: display.c,v 1.36 2010/01/29 00:36:09 tedu Exp $ */ +/* $OpenBSD: display.c,v 1.37 2010/02/05 10:21:10 otto Exp $ */ /* * Top users/processes display for Unix @@ -100,7 +100,6 @@ int y_idlecursor; int y_procs; extern int ncpu; extern int combine_cpus; -int Header_lines; int header_status = Yes; @@ -130,11 +129,10 @@ display_resize(void) y_mem = 2 + cpu_lines; y_header = 4 + cpu_lines; y_procs = 5 + cpu_lines; - Header_lines = 5 + cpu_lines; /* calculate the current dimensions */ /* if operating in "dumb" mode, we only need one line */ - display_lines = smart_terminal ? screen_length - Header_lines : 1; + display_lines = smart_terminal ? screen_length - y_procs : 1; y_idlecursor = y_message = 3 + (combine_cpus ? 1 : ncpu); if (screen_length <= y_message) |