mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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
This commit is contained in:
@@ -9,7 +9,7 @@ if (! $oids) {
|
|||||||
// upsAdvBatteryTemperature, used in case high precision is not available
|
// 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', '');
|
$oids = snmp_get($device, '.1.3.6.1.4.1.318.1.1.1.2.2.2.0', '-OsqnU', '');
|
||||||
d_echo($oids . "\n");
|
d_echo($oids . "\n");
|
||||||
$divisor = 1;
|
$precision = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($oids) {
|
if ($oids) {
|
||||||
|
Reference in New Issue
Block a user