summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-11-07 19:37:52 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-11-07 19:37:52 -0500
commita3ae10f9a2e8a1ea83a4668c5270febf96f0a7f8 (patch)
tree457a51969f6fa5f2b5bb130534cd032f8a8c605e
parent43b13a97de54cacc0439caebb983246a3bdac20f (diff)
downloadphoronix-test-suite-upstream-a3ae10f9a2e8a1ea83a4668c5270febf96f0a7f8.tar.gz
phoronix-test-suite-upstream-a3ae10f9a2e8a1ea83a4668c5270febf96f0a7f8.tar.xz
phoronix-test-suite-upstream-a3ae10f9a2e8a1ea83a4668c5270febf96f0a7f8.zip
pts-core: Switch in memory_mb_capacity()
-rw-r--r--pts-core/functions/pts-functions_system_hardware.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/pts-core/functions/pts-functions_system_hardware.php b/pts-core/functions/pts-functions_system_hardware.php
index 9cf6f03..591d985 100644
--- a/pts-core/functions/pts-functions_system_hardware.php
+++ b/pts-core/functions/pts-functions_system_hardware.php
@@ -400,11 +400,11 @@ function memory_mb_capacity()
}
else if(IS_BSD)
{
- $mem_size = read_sysctl("hw.realmem");
+ $mem_size = read_sysctl("hw.physmem");
if($mem_size == "Unknown")
{
- $mem_size = read_sysctl("hw.physmem");
+ $mem_size = read_sysctl("hw.realmem");
}
$info = floor($mem_size / 1048576);