From e4d26c0c0930c90d1ab1ca5730e856954806eef0 Mon Sep 17 00:00:00 2001 From: TheGracens <81437419+TheGracens@users.noreply.github.com> Date: Fri, 22 Oct 2021 00:08:50 +0200 Subject: [PATCH] Update apc.inc.php (#13405) Fixes the wrong temperature multiplier in APC devices . In case high precision is not available and using older APC firmware --- includes/discovery/sensors/temperature/apc.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/discovery/sensors/temperature/apc.inc.php b/includes/discovery/sensors/temperature/apc.inc.php index 88aa9029e7..df8c518988 100644 --- a/includes/discovery/sensors/temperature/apc.inc.php +++ b/includes/discovery/sensors/temperature/apc.inc.php @@ -9,7 +9,7 @@ if (! $oids) { // upsAdvBatteryTemperature, used in case high precision is not available $oids = snmp_get($device, '.1.3.6.1.4.1.318.1.1.1.2.2.2.0', '-OsqnU', ''); d_echo($oids . "\n"); - $divisor = 1; + $precision = 1; } if ($oids) {