summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2003-10-15 20:01:32 +0000
committermickey <mickey@openbsd.org>2003-10-15 20:01:32 +0000
commit855b858e7666c83d5d5b367f550e0d45450c163f (patch)
tree24d4d9cf06febf57637241ac68c8fd3fd286d952
parenthave to fetch the rctr while still in real mode for it is not valid after (diff)
downloadwireguard-openbsd-855b858e7666c83d5d5b367f550e0d45450c163f.tar.xz
wireguard-openbsd-855b858e7666c83d5d5b367f550e0d45450c163f.zip
also print the uvmexp.zeropages if there is space in vm screen
-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);