Skip to content

Commit

Permalink
Update hddtemp.inc.php (#7232)
Browse files Browse the repository at this point in the history
  • Loading branch information
f0o authored and murrant committed Aug 28, 2017
1 parent aae852d commit f4fd564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/polling/unix-agent/hddtemp.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
$diskcount++;
$temperature = trim(str_replace('C', '', $temperature));
discover_sensor($valid['sensor'], 'temperature', $device, '', $diskcount, 'hddtemp', "$blockdevice: $descr", '1', '1', null, null, null, null, $temperature, 'agent');
dbUpdate(array('sensor_current' => $temperature), 'sensors', '`sensor_index` = ?, `sensor_class` = ?, `poller_type` = ?, `device_id` = ?', array($diskcount, 'temperature', 'agent', $device['device_id']));
dbUpdate(array('sensor_current' => $temperature), 'sensors', '`sensor_index` = ? AND `sensor_class` = ? AND `poller_type` = ? AND `device_id` = ?', array($diskcount, 'temperature', 'agent', $device['device_id']));
$tmp_agent_sensors = dbFetchRow("SELECT * FROM `sensors` WHERE `sensor_index` = ? AND `device_id` = ? AND `sensor_class` = 'temperature' AND `poller_type` = 'agent' AND `sensor_deleted` = 0 LIMIT 1", array($diskcount, $device['device_id']));
$tmp_agent_sensors['new_value'] = $temperature;
$agent_sensors[] = $tmp_agent_sensors;
Expand Down

0 comments on commit f4fd564

Please sign in to comment.