summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-04-01 18:11:58 +0000
committerderaadt <deraadt@openbsd.org>1997-04-01 18:11:58 +0000
commitb7634ae17beb48fcddfdcc557f0d72bda1263b73 (patch)
treee31f90aeda1913081c6ca8592422f3337f2bc8b3
parentChanges from NetBSD to compile games without warnings due to short being (diff)
downloadwireguard-openbsd-b7634ae17beb48fcddfdcc557f0d72bda1263b73.tar.xz
wireguard-openbsd-b7634ae17beb48fcddfdcc557f0d72bda1263b73.zip
zap extra XXX if swap goes down; paul@wit387304.student.utwente.nl
-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++;