From b7634ae17beb48fcddfdcc557f0d72bda1263b73 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 1 Apr 1997 18:11:58 +0000 Subject: [PATCH] zap extra XXX if swap goes down; paul@wit387304.student.utwente.nl --- usr.bin/systat/swap.c | 5 +++-- 1 file 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++; -- 2.20.1