fix: Fixed UPS time remaining in Mikrotik RouterOs (#7803)

* Fix UPS time remaining in Mikrotik RouterOs

* Fix UPS time remaining in Mikrotik RouterOs

* Remove space
This commit is contained in:
Martin Zatloukal
2017-11-27 18:13:09 +01:00
committed by Neil Lathwood
parent 199d160fe0
commit 6b4241381f

View File

@@ -854,7 +854,11 @@ function get_device_divisor($device, $os_version, $sensor_type, $oid)
}
if (starts_with($oid, '.1.3.6.1.2.1.33.1.2.3.')) {
return 1;
if ($device['os'] == 'routeros') {
return 60;
} else {
return 1;
}
}
}