summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_system_parsing.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-12-09 09:54:00 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-12-09 09:54:00 -0500
commit53104abaa9afe7d8f907005830d19b30c256d335 (patch)
tree47e34ac48d866fe519ad96116e652b47aac98432 /pts-core/functions/pts-functions_system_parsing.php
parent73e1506e3c4740521466617a3b4cc651129d9e16 (diff)
downloadphoronix-test-suite-upstream-53104abaa9afe7d8f907005830d19b30c256d335.tar.gz
phoronix-test-suite-upstream-53104abaa9afe7d8f907005830d19b30c256d335.tar.xz
phoronix-test-suite-upstream-53104abaa9afe7d8f907005830d19b30c256d335.zip
pts-core: Improve detection of CPU processor temperature
Diffstat (limited to 'pts-core/functions/pts-functions_system_parsing.php')
-rw-r--r--pts-core/functions/pts-functions_system_parsing.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/pts-core/functions/pts-functions_system_parsing.php b/pts-core/functions/pts-functions_system_parsing.php
index 54e781d..3932e66 100644
--- a/pts-core/functions/pts-functions_system_parsing.php
+++ b/pts-core/functions/pts-functions_system_parsing.php
@@ -131,7 +131,7 @@ function read_sensors($attributes)
$this_remainder = trim(str_replace(array('+', '°'), ' ', $line[1]));
$this_value = substr($this_remainder, 0, strpos($this_remainder, ' '));
- if(is_numeric($this_value))
+ if(is_numeric($this_value) && $this_value > 0)
{
$value = $this_value;
}