diff options
author | Matthew Dillon <dillon@FreeBSD.org> | 2003-01-11 07:29:47 +0000 |
---|---|---|
committer | Matthew Dillon <dillon@FreeBSD.org> | 2003-01-11 07:29:47 +0000 |
commit | f7550ecf3f7a666137521e2b80016faa72e1b2b2 (patch) | |
tree | 47505a9e9b6fcfb7c6793719d09dfa37ab8058f9 /usr.bin/systat | |
parent | 42cf585a69bb07dafbe70194862aad91471d78c6 (diff) | |
download | src-f7550ecf3f7a666137521e2b80016faa72e1b2b2.tar.gz src-f7550ecf3f7a666137521e2b80016faa72e1b2b2.zip |
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>
Notes
Notes:
svn path=/head/; revision=109097
Diffstat (limited to 'usr.bin/systat')
-rw-r--r-- | usr.bin/systat/vmstat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c index 8f8f86800252..4697bc506cf2 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)); |