projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efa4bdc
)
Correct memory display on freebsd
author
Jamie Cameron
<jcameron@webmin.com>
Thu, 5 Jun 2008 16:35:56 +0000
(16:35 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Thu, 5 Jun 2008 16:35:56 +0000
(16:35 +0000)
proc/freebsd-lib.pl
patch
|
blob
|
history
diff --git
a/proc/freebsd-lib.pl
b/proc/freebsd-lib.pl
index
ccefae5
..
acfcd8a
100644
(file)
--- a/
proc/freebsd-lib.pl
+++ b/
proc/freebsd-lib.pl
@@
-114,8
+114,8
@@
my $mem_cache = $sysctl->{"vm.stats.vm.v_cache_count"} *
$sysctl->{"hw.pagesize"};
my $mem_free = $sysctl->{"vm.stats.vm.v_free_count"} *
$sysctl->{"hw.pagesize"};
-return ( $sysctl->{"hw.physmem"},
-
$mem_inactive + $mem_cache + $mem_free
);
+return ( $sysctl->{"hw.physmem"}
/ 1024
,
+
($mem_inactive + $mem_cache + $mem_free) / 1024
);
}
1;