From 187e654d9ab8b270eb7ce255f4014e7a97b9298b Mon Sep 17 00:00:00 2001 From: dillon Date: Sat, 11 Jan 2003 07:29:47 +0000 Subject: 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 --- usr.bin/systat/vmstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/systat/vmstat.c') diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c index 8f8f868..4697bc5 100644 --- a/usr.bin/systat/vmstat.c +++ b/usr.bin/systat/vmstat.c @@ -784,7 +784,7 @@ getinfo(ls) size = sizeof(ls->Total); mib[0] = CTL_VM; - mib[1] = VM_METER; + mib[1] = VM_TOTAL; if (sysctl(mib, 2, &ls->Total, &size, NULL, 0) < 0) { error("Can't get kernel info: %s\n", strerror(errno)); bzero(&ls->Total, sizeof(ls->Total)); -- cgit v1.1