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

Collapse All | Expand All

(-)src/usr.bin/vmstat/vmstat.c (-2 / +3 lines)
Lines 758-764 Link Here
758
	register struct malloc_type *ks;
758
	register struct malloc_type *ks;
759
	register int i, j;
759
	register int i, j;
760
	int len, size, first, nkms;
760
	int len, size, first, nkms;
761
	long totuse = 0, totfree = 0, totreq = 0;
761
	long totuse = 0, totfree = 0;
762
	int64_t totreq = 0;
762
	const char *name;
763
	const char *name;
763
	struct malloc_type kmemstats[MAX_KMSTATS], *kmsp;
764
	struct malloc_type kmemstats[MAX_KMSTATS], *kmsp;
764
	char buf[1024];
765
	char buf[1024];
Lines 862-868 Link Here
862
		totreq += ks->ks_calls;
863
		totreq += ks->ks_calls;
863
	}
864
	}
864
	(void)printf("\nMemory Totals:  In Use    Free    Requests\n");
865
	(void)printf("\nMemory Totals:  In Use    Free    Requests\n");
865
	(void)printf("              %7ldK %6ldK    %8ld\n",
866
	(void)printf("              %7ldK %6ldK    %8lld\n",
866
	     (totuse + 1023) / 1024, (totfree + 1023) / 1024, totreq);
867
	     (totuse + 1023) / 1024, (totfree + 1023) / 1024, totreq);
867
}
868
}
868
869
869
   Another quickie -- should sys/malloc.h receive modifications similar
870
   Another quickie -- should sys/malloc.h receive modifications similar
870
   to the one below?  (Of course, anything using these structures might
871
   to the one below?  (Of course, anything using these structures might
871
   need some patching as well ...)
872
   need some patching as well ...)

Return to bug 32342