projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix calculation of swap allocation for text segments.
[unix-history]
/
usr
/
src
/
usr.sbin
/
pstat
/
pstat.c
diff --git
a/usr/src/usr.sbin/pstat/pstat.c
b/usr/src/usr.sbin/pstat/pstat.c
index
636e2b8
..
f75ec57
100644
(file)
--- a/
usr/src/usr.sbin/pstat/pstat.c
+++ b/
usr/src/usr.sbin/pstat/pstat.c
@@
-1,5
+1,5
@@
#ifndef lint
#ifndef lint
-static char *sccsid = "@(#)pstat.c 4.2
7
(Berkeley) %G%";
+static char *sccsid = "@(#)pstat.c 4.2
8
(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(c
topt(xp->x_size
));
+ tused += ctod(c
lrnd(ctopt(xp->x_size)
));
}
used = tused;
waste = 0;
}
used = tused;
waste = 0;