summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Ruigrok van der Werven <asmodai@FreeBSD.org>2002-04-08 10:39:12 +0000
committerJeroen Ruigrok van der Werven <asmodai@FreeBSD.org>2002-04-08 10:39:12 +0000
commit9333bd2aa676aff8c032b69104b83c0f8b4bdc77 (patch)
tree6aa21dd1b898f33f6bdd1cabf1fa2d9bf8ee8832
parent73d75acaa0145be81a7aca82e61631883edaf8f5 (diff)
Notes
-rw-r--r--usr.bin/vmstat/vmstat.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index b792ac60418e..1a15b75ca7e2 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -761,7 +761,8 @@ domem()
struct malloc_type *ks;
int i, j;
int first, nkms;
- long totuse = 0, totfree = 0, totreq = 0;
+ long totuse = 0, totfree = 0;
+ uint64_t totreq = 0;
struct malloc_type kmemstats[MAX_KMSTATS], *kmsp;
char buf[1024];
@@ -810,8 +811,8 @@ domem()
totuse += ks->ks_memuse;
totreq += ks->ks_calls;
}
- (void)printf("\nMemory Totals: In Use Free Requests\n");
- (void)printf(" %7ldK %6ldK %8ld\n",
+ (void)printf("\nMemory Totals: In Use Free Requests\n");
+ (void)printf(" %7ldK %6ldK %20llu\n",
(totuse + 1023) / 1024, (totfree + 1023) / 1024, totreq);
}