summaryrefslogtreecommitdiffstats
path: root/pts-core/modules
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-10-02 10:40:04 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-10-02 10:40:04 -0400
commit683aa36e8f3877ebc11cbdc207a68cb697f51028 (patch)
tree4fe6af8b10353ff3b62fad4d6fa1cb853d3918d4 /pts-core/modules
parent9c8e2d62f9d31e371e41affc4d81bc34f96c8eed (diff)
downloadphoronix-test-suite-upstream-683aa36e8f3877ebc11cbdc207a68cb697f51028.tar.gz
phoronix-test-suite-upstream-683aa36e8f3877ebc11cbdc207a68cb697f51028.tar.xz
phoronix-test-suite-upstream-683aa36e8f3877ebc11cbdc207a68cb697f51028.zip
pts-core: graphics_gpu_usage() returns -1 on failure
Diffstat (limited to 'pts-core/modules')
-rw-r--r--pts-core/modules/system_monitor.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/pts-core/modules/system_monitor.php b/pts-core/modules/system_monitor.php
index f98bc15..4bf474c 100644
--- a/pts-core/modules/system_monitor.php
+++ b/pts-core/modules/system_monitor.php
@@ -578,7 +578,7 @@ class system_monitor extends pts_module_interface
{
$usage = graphics_gpu_usage();
- if($usage != "")
+ if($usage != -1)
pts_module::save_file(".s/GPU_USAGE", $usage, true);
}
if(defined("MONITOR_CPU_USAGE"))