diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-10-02 10:40:04 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-10-02 10:40:04 -0400 |
commit | 683aa36e8f3877ebc11cbdc207a68cb697f51028 (patch) | |
tree | 4fe6af8b10353ff3b62fad4d6fa1cb853d3918d4 /pts-core | |
parent | 9c8e2d62f9d31e371e41affc4d81bc34f96c8eed (diff) | |
download | phoronix-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')
-rw-r--r-- | pts-core/functions/pts-functions_system_graphics.php | 2 | ||||
-rw-r--r-- | pts-core/modules/system_monitor.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pts-core/functions/pts-functions_system_graphics.php b/pts-core/functions/pts-functions_system_graphics.php index 559048a..b532ad4 100644 --- a/pts-core/functions/pts-functions_system_graphics.php +++ b/pts-core/functions/pts-functions_system_graphics.php @@ -792,7 +792,7 @@ function opengl_version() function graphics_gpu_usage() { // Determine GPU usage - $gpu_usage = 0; + $gpu_usage = -1; if(IS_ATI_GRAPHICS) { 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")) |