From 79877ea52229599d5a5b6d9d5a24e6808b0c51ba Mon Sep 17 00:00:00 2001 From: Michael Kupfer Date: Thu, 4 Apr 1985 00:04:38 -0800 Subject: [PATCH] Fix calculation of swap allocation for text segments. SCCS-vsn: usr.sbin/pstat/pstat.c 4.28 --- usr/src/usr.sbin/pstat/pstat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr/src/usr.sbin/pstat/pstat.c b/usr/src/usr.sbin/pstat/pstat.c index 636e2b8dec..f75ec57377 100644 --- a/usr/src/usr.sbin/pstat/pstat.c +++ b/usr/src/usr.sbin/pstat/pstat.c @@ -1,5 +1,5 @@ #ifndef lint -static char *sccsid = "@(#)pstat.c 4.27 (Berkeley) %G%"; +static char *sccsid = "@(#)pstat.c 4.28 (Berkeley) %G%"; #endif /* * Print system stuff @@ -721,9 +721,9 @@ doswap() tused = 0; for (xp = xtext; xp < &xtext[ntext]; xp++) if (xp->x_iptr!=NULL) { - tused += ctod(xp->x_size); + tused += ctod(clrnd(xp->x_size)); if (xp->x_flag & XPAGI) - tused += ctod(ctopt(xp->x_size)); + tused += ctod(clrnd(ctopt(xp->x_size))); } used = tused; waste = 0; -- 2.20.1