This commit is contained in:
José DA COSTA 2014-08-12 12:30:54 +00:00
commit b843518b8a
2 changed files with 1130 additions and 0 deletions

View file

@ -217,6 +217,9 @@ sub os_setup {
} else {
if ($os =~ /Linux/) {
$physical_memory = `free -b | grep Mem | awk '{print \$2}'` or memerror;
if ($physical_memory == 0) {
$physical_memory = `echo \$(( \`cat /proc/meminfo | grep 'MemTotal' | awk '{print \$2}'\` * 1024 ))` or memerror;
}
$swap_memory = `free -b | grep Swap | awk '{print \$2}'` or memerror;
} elsif ($os =~ /Darwin/) {
$physical_memory = `sysctl -n hw.memsize` or memerror;

1127
top.txt Normal file

File diff suppressed because it is too large Load diff