mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
fix updating of currents until the function is merged to discover_sensor :)
git-svn-id: http://www.observium.org/svn/observer/trunk@1349 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -362,7 +362,7 @@ function discover_current(&$valid, $device, $oid, $index, $type, $descr, $precis
|
||||
}
|
||||
else
|
||||
{
|
||||
mysql_query("UPDATE current SET `sensor_descr` = '$descr', `sensor_oid` = '$oid', `sensor_precision` = '$precision' WHERE `sensor_class`='current' AND `device_id` = '" . $device['device_id'] . "' AND sensor_type = '$type' AND `sensor_index` = '$index' ");
|
||||
mysql_query("UPDATE sensors SET `sensor_descr` = '$descr', `sensor_oid` = '$oid', `sensor_precision` = '$precision' WHERE `sensor_class`='current' AND `device_id` = '" . $device['device_id'] . "' AND sensor_type = '$type' AND `sensor_index` = '$index' ");
|
||||
echo("U");
|
||||
if($debug) { echo("$query ". mysql_affected_rows() . " updated"); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user