Project

General

Profile

Bug #1340 ยป vmstat.diff

Anonymous, 04/20/2009 02:28 PM

View differences:

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,
    (1-1/1)