mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-18 02:19:39 +00:00
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:
parent
71d033119f
commit
6243f7aca4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74524
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user