mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02: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