Unbreak the support for 24-row terminals in the vmstat display. The

part that handled the 17th and 18th rows of the vmstat-proper subdisplay
was deleted in rev.1.10 when these rows stopped being used and was not
restored when the 17th row was used again.  For such terminals, we now
lose the `buf' field instead of making a mess with it.  Terminals with
fewer than 24 rows have never been supported.

The problem is not avoided by using curses since we use the last line
for data entry and don't use a separate subwindow for this line.
Some other things in the vmstat display could be handled better using
subwindows.
This commit is contained in:
Bruce Evans 2006-05-01 00:26:43 +00:00
parent 1247d9c61c
commit 74a2149c90

View File

@ -350,7 +350,8 @@ labelkre()
mvprintw(VMSTATROW + 13, VMSTATCOL + 9, "pdwak");
mvprintw(VMSTATROW + 14, VMSTATCOL + 9, "pdpgs");
mvprintw(VMSTATROW + 15, VMSTATCOL + 9, "intrn");
mvprintw(VMSTATROW + 16, VMSTATCOL + 9, "buf");
if (LINES - 1 > VMSTATROW + 16)
mvprintw(VMSTATROW + 16, VMSTATCOL + 9, "buf");
mvprintw(GENSTATROW, GENSTATCOL, " Csw Trp Sys Int Sof Flt");
@ -519,7 +520,8 @@ showkre()
PUTRATE(v_pdwakeups, VMSTATROW + 13, VMSTATCOL, 8);
PUTRATE(v_pdpages, VMSTATROW + 14, VMSTATCOL, 8);
PUTRATE(v_intrans, VMSTATROW + 15, VMSTATCOL, 8);
putint(s.bufspace / 1024, VMSTATROW + 16, VMSTATCOL, 8);
if (LINES - 1 > VMSTATROW + 16)
putint(s.bufspace / 1024, VMSTATROW + 16, VMSTATCOL, 8);
PUTRATE(v_vnodein, PAGEROW + 2, PAGECOL + 6, 5);
PUTRATE(v_vnodeout, PAGEROW + 2, PAGECOL + 12, 5);
PUTRATE(v_swapin, PAGEROW + 2, PAGECOL + 19, 5);