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
This commit is contained in:
parent
7a0eaad3ab
commit
54900c9b1f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238020
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user