mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
changing the version variable for determining device devisor for determining the right mikrotik ups runtime (#13678)
This commit is contained in:
@@ -795,7 +795,7 @@ function get_device_divisor($device, $os_version, $sensor_type, $oid)
|
||||
}
|
||||
|
||||
if (Str::startsWith($oid, '.1.3.6.1.2.1.33.1.2.3.')) {
|
||||
if ($device['os'] == 'routeros' && version_compare($os_version, '6.47', '<')) {
|
||||
if ($device['os'] == 'routeros' && version_compare($device['version'], '6.47', '<')) {
|
||||
return 60;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user