summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-01 18:11:59 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-01 18:11:59 +0000
commit8e242ae3cb903bfe60389281362a2988dc892f71 (patch)
treec5d4fe145c524dffd0e6c22e1a5883451fe637d6 /usr.bin
parent7366db9b89af05935c6bf0ff78d21d60eb92eb28 (diff)
zap extra XXX if swap goes down; paul@wit387304.student.utwente.nl
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/systat/swap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/systat/swap.c b/usr.bin/systat/swap.c
index 7b9b01f85ef..4e2a2b9deeb 100644
--- a/usr.bin/systat/swap.c
+++ b/usr.bin/systat/swap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: swap.c,v 1.7 1997/01/31 10:09:36 deraadt Exp $ */
+/* $OpenBSD: swap.c,v 1.8 1997/04/01 18:11:58 deraadt Exp $ */
/* $NetBSD: swap.c,v 1.5 1996/05/10 23:16:38 thorpej Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)swap.c 8.3 (Berkeley) 4/29/95";
#endif
-static char rcsid[] = "$OpenBSD: swap.c,v 1.7 1997/01/31 10:09:36 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: swap.c,v 1.8 1997/04/01 18:11:58 deraadt Exp $";
#endif /* not lint */
/*
@@ -247,6 +247,7 @@ showswap()
xfree = perdev[i];
used = xsize - xfree;
mvwprintw(wnd, i + 1, col, "%9d ", used / div);
+ wclrtoeol(wnd);
for (j = (100 * used / xsize + 1) / 2; j > 0; j--)
waddch(wnd, 'X');
npfree++;