diff options
-rw-r--r-- | EXPERIMENTAL-CHANGE-LOG | 1 | ||||
-rw-r--r-- | pts-core/functions/pts-functions_system_graphics.php | 2 | ||||
-rw-r--r-- | pts-core/modules/system_monitor.php | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/EXPERIMENTAL-CHANGE-LOG b/EXPERIMENTAL-CHANGE-LOG index 9257d4f..7f0a660 100644 --- a/EXPERIMENTAL-CHANGE-LOG +++ b/EXPERIMENTAL-CHANGE-LOG @@ -43,6 +43,7 @@ Phoronix Test Suite - pts-core: Drop $OS from pts_env_variables() as instead test profile maintainers should use $OPERATING_SYSTEM - pts-core: Switch back to using read_amd_pcsdb() with read_amd_pcsdb_direct_parser() fallback instead of just read_amd_pcsdb_direct_parser() in hopes AMD doesn't break aticonfig again - pts-core: Add support for using hddtemp to read hard disk drive temperature on Linux +- pts-core: graphics_gpu_usage() returns -1 on failure - pts: Move pcqs tests out of tree - pts: Switch all relevant test profiles using ArgumentName to using ArgumentPrefix - pts: Move the byte test profile to using the new $LOG_FILE capability for an example and for testing 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")) |