aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/systat
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>1999-02-06 06:43:56 +0000
committerMatthew Dillon <dillon@FreeBSD.org>1999-02-06 06:43:56 +0000
commit300c6da23d72a3b8dc2f7997d82e3d65c97054a3 (patch)
tree40d421a51e7502bc47d259dc11bf740481b11b62 /usr.bin/systat
parent47b370f5c62e9e71e3ad7c7ffc710f555da80015 (diff)
Notes
Diffstat (limited to 'usr.bin/systat')
-rw-r--r--usr.bin/systat/swap.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.bin/systat/swap.c b/usr.bin/systat/swap.c
index c130028c4ff2..906d7b97e415 100644
--- a/usr.bin/systat/swap.c
+++ b/usr.bin/systat/swap.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)swap.c 8.3 (Berkeley) 4/29/95";
#endif
static const char rcsid[] =
- "$Id: swap.c,v 1.8 1999/01/22 10:53:13 dillon Exp $";
+ "$Id: swap.c,v 1.9 1999/01/22 10:57:50 dillon Exp $";
#endif /* not lint */
/*
@@ -110,6 +110,7 @@ initswap()
error(msgbuf);
return (0);
}
+
once = 1;
return (1);
}
@@ -167,6 +168,15 @@ showswap()
);
col += 5;
}
+ if (kvmsw[i].ksw_total == 0) {
+ mvwprintw(
+ wnd,
+ i + 1,
+ col + 5,
+ "(swap not configured)"
+ );
+ continue;
+ }
mvwprintw(
wnd,