From 15b0c2d66589ec3387f582557c46ba6278d3d90b Mon Sep 17 00:00:00 2001 From: TechieDylan <79419027+TechieDylan@users.noreply.github.com> Date: Sun, 16 Jan 2022 09:32:54 -0500 Subject: [PATCH] changing the version variable for determining device devisor for determining the right mikrotik ups runtime (#13678) --- includes/discovery/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/discovery/functions.inc.php b/includes/discovery/functions.inc.php index 72afb7679d..e441949be7 100644 --- a/includes/discovery/functions.inc.php +++ b/includes/discovery/functions.inc.php @@ -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; }