diff options
author | jhb <jhb@FreeBSD.org> | 2012-07-02 20:08:11 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2012-07-02 20:08:11 +0000 |
commit | 2883940819efb23fc882dd47de9d6267e3669551 (patch) | |
tree | 24dd106cd366b16d57e4b9793e477e29099cf649 /usr.bin | |
parent | 3841b875ad02f5fe33c4b5ba9dee9cd161530cee (diff) | |
download | FreeBSD-src-2883940819efb23fc882dd47de9d6267e3669551.zip FreeBSD-src-2883940819efb23fc882dd47de9d6267e3669551.tar.gz |
Fix two layout bugs in the previous change:
- Properly increase y_mem when per-CPU stats are enabled.
- Update y_arc for per-CPU stats being enabled/disabled.
MFC after: 3 days
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/top/machine.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 1d6b907..6520ae7 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -263,6 +263,7 @@ update_layout(void) { y_mem = 3; + y_arc = 4; y_swap = 4 + arc_enabled; y_idlecursor = 5 + arc_enabled; y_message = 5 + arc_enabled; @@ -271,7 +272,8 @@ update_layout(void) Header_lines = 7 + arc_enabled; if (pcpu_stats) { - y_mem = ncpus - 1; + y_mem += ncpus - 1; + y_arc += ncpus - 1; y_swap += ncpus - 1; y_idlecursor += ncpus - 1; y_message += ncpus - 1; |