mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
committed by
Neil Lathwood
parent
199d160fe0
commit
6b4241381f
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user