RouterOS now returns the correct runtime (#13461)

as of version 6.47
This commit is contained in:
Tony Murray
2021-11-02 06:23:56 -05:00
committed by GitHub
parent aa5205b95e
commit c572e2828b

View File

@@ -798,11 +798,11 @@ 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') {
if ($device['os'] == 'routeros' && version_compare($os_version, '6.47', '<')) {
return 60;
} else {
return 1;
}
return 1;
}
}