diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-08-21 08:55:29 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-08-21 08:55:29 -0400 |
commit | 602bb16f60164d44f860ea2398448daa0abc09cf (patch) | |
tree | 4328a74465e0640161826bec8f19048c809de07e /pts-core/functions/pts-functions_system.php | |
parent | eff85d20c0ca126afeb5d30bb6fa9cda4bded70f (diff) | |
download | phoronix-test-suite-upstream-602bb16f60164d44f860ea2398448daa0abc09cf.tar.gz phoronix-test-suite-upstream-602bb16f60164d44f860ea2398448daa0abc09cf.tar.xz phoronix-test-suite-upstream-602bb16f60164d44f860ea2398448daa0abc09cf.zip |
pts-core: If memory parsing fails, return -1 usage
Diffstat (limited to 'pts-core/functions/pts-functions_system.php')
-rw-r--r-- | pts-core/functions/pts-functions_system.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pts-core/functions/pts-functions_system.php b/pts-core/functions/pts-functions_system.php index 55318ce..0da99c4 100644 --- a/pts-core/functions/pts-functions_system.php +++ b/pts-core/functions/pts-functions_system.php @@ -349,7 +349,7 @@ function read_system_memory_usage($TYPE = "TOTAL", $READ = "USED") { $mem = explode("\n", shell_exec("free -t -m 2>&1")); $grab_line = null; - $mem_usage = 0; + $mem_usage = -1; for($i = 0; $i < count($mem) && empty($grab_line); $i++) { |