summaryrefslogtreecommitdiffstats
path: root/usr.bin/vmstat/vmstat.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2003-01-11 07:29:47 +0000
committerdillon <dillon@FreeBSD.org>2003-01-11 07:29:47 +0000
commit187e654d9ab8b270eb7ce255f4014e7a97b9298b (patch)
tree47505a9e9b6fcfb7c6793719d09dfa37ab8058f9 /usr.bin/vmstat/vmstat.c
parente2486fdf1adabf06e18a78b19875589848ad3649 (diff)
downloadFreeBSD-src-187e654d9ab8b270eb7ce255f4014e7a97b9298b.zip
FreeBSD-src-187e654d9ab8b270eb7ce255f4014e7a97b9298b.tar.gz
Make 'sysctl vm.vmtotal' work properly using updated patch from Hiten.
(the patch in the PR was stale). PR: kern/5689 Submitted by: Hiten Pandya <hiten@unixdaemons.com>
Diffstat (limited to 'usr.bin/vmstat/vmstat.c')
-rw-r--r--usr.bin/vmstat/vmstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index 54c51ed..c67ca61 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -472,7 +472,7 @@ dovmstat(interval, reps)
kread(X_SUM, &sum, sizeof(sum));
size = sizeof(total);
mib[0] = CTL_VM;
- mib[1] = VM_METER;
+ mib[1] = VM_TOTAL;
if (sysctl(mib, 2, &total, &size, NULL, 0) < 0) {
(void)printf("Can't get kerninfo: %s\n",
strerror(errno));
OpenPOWER on IntegriCloud