diff options
author | asmodai <asmodai@FreeBSD.org> | 2002-04-08 21:06:14 +0000 |
---|---|---|
committer | asmodai <asmodai@FreeBSD.org> | 2002-04-08 21:06:14 +0000 |
commit | 1c2992c7a6b2a9aa51877d8239bcd4b4a15da914 (patch) | |
tree | 308dfec5077d1f5e25ff2a2191ce70c2279e1ce8 /usr.bin/vmstat | |
parent | 2f151668557ad939f690dab75fc2edd4a2334f35 (diff) | |
download | FreeBSD-src-1c2992c7a6b2a9aa51877d8239bcd4b4a15da914.zip FreeBSD-src-1c2992c7a6b2a9aa51877d8239bcd4b4a15da914.tar.gz |
Cast totreq to unsigned long long, as needed on 64-bit machines.
Pointed out by: jeff
Diffstat (limited to 'usr.bin/vmstat')
-rw-r--r-- | usr.bin/vmstat/vmstat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index 1a15b75..cc312c6 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -813,7 +813,8 @@ domem() } (void)printf("\nMemory Totals: In Use Free Requests\n"); (void)printf(" %7ldK %6ldK %20llu\n", - (totuse + 1023) / 1024, (totfree + 1023) / 1024, totreq); + (totuse + 1023) / 1024, + (totfree + 1023) / 1024, (unsigned long long)totreq); } void |