Correct the top memory stats display: convert page counts to kB.

Submitted by:	Andrea Campi <andrea@webcom.it>
Approved by:	rwatson
Pointy hat to:	myself
This commit is contained in:
Thomas Moestl 2001-03-20 16:02:16 +00:00
parent 71d033119f
commit 6243f7aca4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74524

View File

@ -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 */