View | Details | Raw Unified | Return to bug 25445 | Differences between
and this patch

Collapse All | Expand All

(-)vmstat.c (-3 / +4 lines)
Lines 761-767 Link Here
761
	register struct malloc_type *ks;
761
	register struct malloc_type *ks;
762
	register int i, j;
762
	register int i, j;
763
	int len, size, first, nkms;
763
	int len, size, first, nkms;
764
	long totuse = 0, totfree = 0, totreq = 0;
764
	long totuse = 0, totfree = 0;
765
	u_int64_t totreq = 0;
765
	const char *name;
766
	const char *name;
766
	struct malloc_type kmemstats[MAX_KMSTATS], *kmsp;
767
	struct malloc_type kmemstats[MAX_KMSTATS], *kmsp;
767
	char *kmemnames[MAX_KMSTATS];
768
	char *kmemnames[MAX_KMSTATS];
Lines 841-847 Link Here
841
	for (i = 0, ks = &kmemstats[0]; i < nkms; i++, ks++) {
842
	for (i = 0, ks = &kmemstats[0]; i < nkms; i++, ks++) {
842
		if (ks->ks_calls == 0)
843
		if (ks->ks_calls == 0)
843
			continue;
844
			continue;
844
		(void)printf("%13s%6ld%6ldK%7ldK%6ldK%9ld%5u%6u",
845
		(void)printf("%13s%6lu%6ldK%7luK%6ldK%9qu%5u%6u",
845
		    ks->ks_shortdesc,
846
		    ks->ks_shortdesc,
846
		    ks->ks_inuse, (ks->ks_memuse + 1023) / 1024,
847
		    ks->ks_inuse, (ks->ks_memuse + 1023) / 1024,
847
		    (ks->ks_maxused + 1023) / 1024,
848
		    (ks->ks_maxused + 1023) / 1024,
Lines 866-872 Link Here
866
		totreq += ks->ks_calls;
867
		totreq += ks->ks_calls;
867
	}
868
	}
868
	(void)printf("\nMemory Totals:  In Use    Free    Requests\n");
869
	(void)printf("\nMemory Totals:  In Use    Free    Requests\n");
869
	(void)printf("              %7ldK %6ldK    %8ld\n",
870
	(void)printf("              %7ldK %6ldK    %8qu\n",
870
	     (totuse + 1023) / 1024, (totfree + 1023) / 1024, totreq);
871
	     (totuse + 1023) / 1024, (totfree + 1023) / 1024, totreq);
871
}
872
}

Return to bug 25445