diff options
author | phk <phk@FreeBSD.org> | 1996-05-02 13:06:21 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-05-02 13:06:21 +0000 |
commit | 7c53a1f9327e7eab98892482af2efb17a4b34f20 (patch) | |
tree | 8bb77d9b9c8d169a057c5eb5b62b0445fdb3040f /bin | |
parent | df35ab28461be62dada78eeccbaa8c77404c845e (diff) | |
download | FreeBSD-src-7c53a1f9327e7eab98892482af2efb17a4b34f20.zip FreeBSD-src-7c53a1f9327e7eab98892482af2efb17a4b34f20.tar.gz |
CLSIZE -> getpagesize()
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ps/print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c index 24ae6fa..ef7425b 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: print.c,v 1.11 1995/10/28 20:11:18 phk Exp $ + * $Id: print.c,v 1.12 1996/05/02 08:37:16 phk Exp $ */ #ifndef lint @@ -575,7 +575,7 @@ getpmem(k) /* XXX want pmap ptpages, segtab, etc. (per architecture) */ szptudot = UPAGES; /* XXX don't have info about shared */ - fracmem = ((float)e->e_vm.vm_rssize + szptudot)/CLSIZE/mempages; + fracmem = ((float)e->e_vm.vm_rssize + szptudot)/getpagesize()/mempages; #endif return (100.0 * fracmem); } |