aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2006-05-01 00:26:43 +0000
committerBruce Evans <bde@FreeBSD.org>2006-05-01 00:26:43 +0000
commit74a2149c909732c643a4a309ba1812ec101c6eb3 (patch)
tree766d52216c3c46a36358d38e92e8b0ce66acb8c5 /usr.bin
parent1247d9c61ccdb9e34b7bd11eaa58009f23d2172b (diff)
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/systat/vmstat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c
index 15c7d5c76cb2..f2e2cf1df52f 100644
--- a/usr.bin/systat/vmstat.c
+++ b/usr.bin/systat/vmstat.c
@@ -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);