diff options
| author | Luoqi Chen <luoqi@FreeBSD.org> | 1999-02-19 19:34:49 +0000 |
|---|---|---|
| committer | Luoqi Chen <luoqi@FreeBSD.org> | 1999-02-19 19:34:49 +0000 |
| commit | 1c6d46f93c3ed7c82f1d6c1145d1433804859a0a (patch) | |
| tree | 999a2dc0ff706615ad6d8a2320f37351662b3742 /sys/kern/kern_clock.c | |
| parent | fe2144fd5a586249c1c1cae538815c237ec917eb (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_clock.c')
| -rw-r--r-- | sys/kern/kern_clock.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index cda072a7b7f5..0b356228dce0 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -37,7 +37,7 @@ * SUCH DAMAGE. * * @(#)kern_clock.c 8.5 (Berkeley) 1/21/94 - * $Id: kern_clock.c,v 1.86 1998/11/29 20:31:02 phk Exp $ + * $Id: kern_clock.c,v 1.87 1999/02/19 14:25:34 luoqi Exp $ */ #include <sys/param.h> @@ -469,10 +469,10 @@ statclock(frame) if ((pstats = p->p_stats) != NULL && (ru = &pstats->p_ru) != NULL && (vm = p->p_vmspace) != NULL) { - ru->ru_ixrss += vm->vm_tsize * PAGE_SIZE / 1024; - ru->ru_idrss += vm->vm_dsize * PAGE_SIZE / 1024; - ru->ru_isrss += vm->vm_ssize * PAGE_SIZE / 1024; - rss = vmspace_resident_count(vm) * PAGE_SIZE / 1024; + ru->ru_ixrss += pgtok(vm->vm_tsize); + ru->ru_idrss += pgtok(vm->vm_dsize); + ru->ru_isrss += pgtok(vm->vm_ssize); + rss = pgtok(vmspace_resident_count(vm)); if (ru->ru_maxrss < rss) ru->ru_maxrss = rss; } |
