summaryrefslogtreecommitdiff
path: root/usr.bin/systat
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-10-15 20:01:33 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-10-15 20:01:33 +0000
commit6419c4d91eb3bd5757cd4b4481a46e5c2efcff82 (patch)
tree4dfc99961bb513d996d357e7e3aeef05607fed69 /usr.bin/systat
parent342a14d0e8cf68469e2b2a8dfc1edf4e9c1e7a62 (diff)
also print the uvmexp.zeropages if there is space in vm screen
Diffstat (limited to 'usr.bin/systat')
-rw-r--r--usr.bin/systat/vmstat.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c
index f57a6ac82b8..7d6e35ce238 100644
--- a/usr.bin/systat/vmstat.c
+++ b/usr.bin/systat/vmstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmstat.c,v 1.41 2003/06/03 02:56:17 millert Exp $ */
+/* $OpenBSD: vmstat.c,v 1.42 2003/10/15 20:01:32 mickey Exp $ */
/* $NetBSD: vmstat.c,v 1.5 1996/05/10 23:16:40 thorpej Exp $ */
/*-
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94";
#endif
-static char rcsid[] = "$OpenBSD: vmstat.c,v 1.41 2003/06/03 02:56:17 millert Exp $";
+static char rcsid[] = "$OpenBSD: vmstat.c,v 1.42 2003/10/15 20:01:32 mickey Exp $";
#endif /* not lint */
/*
@@ -311,6 +311,8 @@ labelkre(void)
mvprintw(VMSTATROW + 15, VMSTATCOL + 10, "pdfre");
if (LINES - 1 > VMSTATROW + 16)
mvprintw(VMSTATROW + 16, VMSTATCOL + 10, "pdscn");
+ if (LINES - 1 > VMSTATROW + 17)
+ mvprintw(VMSTATROW + 17, VMSTATCOL + 10, "pzidle");
mvprintw(GENSTATROW, GENSTATCOL, " Csw Trp Sys Int Sof Flt");
@@ -480,6 +482,8 @@ showkre(void)
PUTRATE(uvmexp.pdfreed, VMSTATROW + 15, VMSTATCOL, 9);
if (LINES - 1 > VMSTATROW + 16)
PUTRATE(uvmexp.pdscans, VMSTATROW + 16, VMSTATCOL, 9);
+ if (LINES - 1 > VMSTATROW + 17)
+ PUTRATE(uvmexp.zeropages, VMSTATROW + 16, VMSTATCOL, 9);
PUTRATE(uvmexp.pageins, PAGEROW + 2, PAGECOL + 5, 5);
PUTRATE(uvmexp.pdpageouts, PAGEROW + 2, PAGECOL + 10, 5);