Bug #1340 ยป vmstat.diff
usr.bin/vmstat/vmstat.c | ||
---|---|---|
printf(
|
||
"\nMemory statistics by type Type Kern\n");
|
||
printf(
|
||
" Type InUse MemUse HighUse Limit Requests Limit Limit Size(s)\n");
|
||
" Type InUse MemUse HighUse Limit Requests Limit Limit Size(s)\n");
|
||
for (i = 0, ks = &kmemstats[0]; i < nkms; i++, ks++) {
|
||
if (ks->ks_calls == 0)
|
||
continue;
|
||
printf("%13s%6ld%6ldK%7ldK%7ldK%9lld%5u%6u",
|
||
printf("%19s%6ld%6ldK%7ldK%7ldK%9lld%5u%6u",
|
||
ks->ks_shortdesc,
|
||
cpuagg(ks->ks_inuse), (cpuagg(ks->ks_memuse) + 1023) / 1024,
|
||
(ks->ks_maxused + 1023) / 1024,
|