aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorThomas Moestl <tmm@FreeBSD.org>2001-03-20 16:02:16 +0000
committerThomas Moestl <tmm@FreeBSD.org>2001-03-20 16:02:16 +0000
commit6243f7aca440c5354f1680b07fa0a6b70027d3e1 (patch)
treedc9407b35c9f20bb79e5ff95335c52cbd3786b92 /usr.bin
parent71d033119f84d08ca2f2d6b0cefd59c467f0f15e (diff)
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/top/machine.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index 33c621e5aaeff..50024982574d7 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -332,7 +332,12 @@ struct system_info *si;
GETSYSCTL("vm.stats.vm.v_swappgsin", nspgsin);
GETSYSCTL("vm.stats.vm.v_swappgsout", nspgsout);
/* convert memory stats to Kbytes */
+ memory_stats[0] = pagetok(memory_stats[0]);
+ memory_stats[1] = pagetok(memory_stats[1]);
+ memory_stats[2] = pagetok(memory_stats[2]);
+ memory_stats[3] = pagetok(memory_stats[3]);
memory_stats[4] = bufspace / 1024;
+ memory_stats[5] = pagetok(memory_stats[5]);
memory_stats[6] = -1;
/* first interval */