From 683aa36e8f3877ebc11cbdc207a68cb697f51028 Mon Sep 17 00:00:00 2001 From: Michael Larabel Date: Thu, 2 Oct 2008 10:40:04 -0400 Subject: pts-core: graphics_gpu_usage() returns -1 on failure --- pts-core/modules/system_monitor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pts-core/modules') 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")) -- cgit