switch to preg_split (split deprecated). ignore temps >1000 and == 0 for lmsensors

git-svn-id: http://www.observium.org/svn/observer/trunk@1150 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-06-12 15:17:38 +00:00
parent f94aeee0ef
commit e696b60ba7
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ function discover_mempool(&$valid_mempool, $device, $index, $type, $descr, $prec
function discover_temperature(&$valid_temp, $device, $oid, $index, $type, $descr, $precision = 1, $low_limit = NULL, $high_limit = NULL, $current)
{
global $config, $debug;
if($debug) { echo("$oid, $index, $type, $descr, $precision\n"); }
if($debug) { echo("$oid, $index, $type, $descr, $precision, $current\n"); }
if (mysql_result(mysql_query("SELECT COUNT(temp_id) FROM `temperature` WHERE temp_type = '$type' AND temp_index = '$index' AND device_id = '".$device['device_id']."'"),0) == '0')