changing the version variable for determining device devisor for determining the right mikrotik ups runtime (#13678)

This commit is contained in:
TechieDylan
2022-01-16 09:32:54 -05:00
committed by GitHub
parent 6aef4a8e62
commit 15b0c2d665

View File

@@ -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;
}