diff --git a/Changes b/Changes index 01e4b9f..3d918c0 100644 --- a/Changes +++ b/Changes @@ -3,6 +3,7 @@ - Added a new option called 'graph_mode' to view the memory graph in two different modes: 'real' (being the default) and 'interpreted'. (suggested by Ɓukasz "Cyber Killer" Korpalski, cyberkiller8 AT gmail.com) +- Fixed a bad memory scaling in *BSD systems. 3.10.0 - 25-Sep-2017 diff --git a/lib/system.pm b/lib/system.pm index 2d9c5ba..8b6bca4 100644 --- a/lib/system.pm +++ b/lib/system.pm @@ -456,6 +456,7 @@ sub system_cgi { } elsif(grep {$_ eq $config->{os}} ("FreeBSD", "OpenBSD", "NetBSD")) { $total_mem = `/sbin/sysctl -n hw.physmem`; # in bytes chomp($total_mem); + $total_mem = int($total_mem / 1024); # in KB } $total_mem_bytes = int($total_mem * 1024); # in bytes $total_mem = int($total_mem / 1024); # in MB