diff options
author | dt <dt@FreeBSD.org> | 1998-06-21 18:00:34 +0000 |
---|---|---|
committer | dt <dt@FreeBSD.org> | 1998-06-21 18:00:34 +0000 |
commit | f48c45f907ec6fec7c1c7db2f3ec364d3d174d17 (patch) | |
tree | 3ad21a586af8dd94e7ccf345c9b5fcec19656e7a /usr.bin | |
parent | 29300b726706ee2e7a0b6c17d723da873d97710c (diff) | |
download | FreeBSD-src-f48c45f907ec6fec7c1c7db2f3ec364d3d174d17.zip FreeBSD-src-f48c45f907ec6fec7c1c7db2f3ec364d3d174d17.tar.gz |
Make value of SIZE accurate.
Obtained from: ps(1)
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/top/machine.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index c87b00e..dba333b 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -17,7 +17,7 @@ * Steven Wallace <swallace@freebsd.org> * Wolfram Schneider <wosch@FreeBSD.org> * - * $Id: machine.c,v 1.9 1998/02/14 13:34:59 peter Exp $ + * $Id: machine.c,v 1.10 1998/05/28 09:29:48 phk Exp $ */ @@ -81,7 +81,7 @@ struct handle ((pct) / (1.0 - exp(PP((pp), p_swtime) * logcpu)))) /* what we consider to be process size: */ -#define PROCSIZE(pp) (VP((pp), vm_tsize) + VP((pp), vm_dsize) + VP((pp), vm_ssize)) +#define PROCSIZE(pp) (VP((pp), vm_map.size) / 1024) /* definitions for indices in the nlist array */ @@ -607,7 +607,7 @@ char *(*get_userid)(); (PP(pp, p_rtprio.type) == RTP_PRIO_REALTIME ? (PRIO_MIN - 1 - RTP_PRIO_MAX + PP(pp, p_rtprio.prio)) : (PRIO_MAX + 1 + PP(pp, p_rtprio.prio)))), - format_k2(pagetok(PROCSIZE(pp))), + format_k2(PROCSIZE(pp)), format_k2(pagetok(VP(pp, vm_rssize))), status, smpmode ? PP(pp, p_lastcpu) : 0, |