From: deraadt Date: Tue, 1 Apr 1997 18:11:58 +0000 (+0000) Subject: zap extra XXX if swap goes down; paul@wit387304.student.utwente.nl X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b7634ae17beb48fcddfdcc557f0d72bda1263b73;p=openbsd zap extra XXX if swap goes down; paul@wit387304.student.utwente.nl --- 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++;