Fix calculation of swap allocation for text segments.
authorMichael Kupfer <kupfer@ucbvax.Berkeley.EDU>
Thu, 4 Apr 1985 08:04:38 +0000 (00:04 -0800)
committerMichael Kupfer <kupfer@ucbvax.Berkeley.EDU>
Thu, 4 Apr 1985 08:04:38 +0000 (00:04 -0800)
SCCS-vsn: usr.sbin/pstat/pstat.c 4.28

usr/src/usr.sbin/pstat/pstat.c

index 636e2b8..f75ec57 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)pstat.c     4.27 (Berkeley) %G%";
+static char *sccsid = "@(#)pstat.c     4.28 (Berkeley) %G%";
 #endif
 /*
  * Print system stuff
 #endif
 /*
  * Print system stuff
@@ -721,9 +721,9 @@ doswap()
        tused = 0;
        for (xp = xtext; xp < &xtext[ntext]; xp++)
                if (xp->x_iptr!=NULL) {
        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)
                        if (xp->x_flag & XPAGI)
-                               tused += ctod(ctopt(xp->x_size));
+                               tused += ctod(clrnd(ctopt(xp->x_size)));
                }
        used = tused;
        waste = 0;
                }
        used = tused;
        waste = 0;