Correct memory display on freebsd

This commit is contained in:
Jamie Cameron
2008-06-05 16:35:56 +00:00
parent efa4bdc4ed
commit efdbbd037b

View File

@ -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;