mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
@ -83,7 +83,7 @@ function poll_sensor($device, $class, $unit) {
|
||||
$sensor_value = 0;
|
||||
}
|
||||
|
||||
if ($sensor['sensor_divisor']) {
|
||||
if ($sensor['sensor_divisor'] && $sensor_value !== 0) {
|
||||
$sensor_value = ($sensor_value / $sensor['sensor_divisor']);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user