mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix GE UPS voltage factor (#6558)
This commit is contained in:
committed by
Neil Lathwood
parent
233f8e83b4
commit
0dcc1d18c5
@@ -959,8 +959,12 @@ function get_device_divisor($device, $os_version, $sensor_type, $oid)
|
||||
} elseif ($sensor_type == 'voltage' && !starts_with($oid, '.1.3.6.1.2.1.33.1.2.5.')) {
|
||||
return 1;
|
||||
}
|
||||
} elseif (($device['os'] == 'ge-digitalenergy') && ($sensor_type == 'load')) {
|
||||
return 1;
|
||||
} elseif ($device['os'] == 'ge-ups') {
|
||||
if ($sensor_type == 'load') {
|
||||
return 1;
|
||||
} elseif ($sensor_type == 'voltage' && !starts_with($oid, '.1.3.6.1.2.1.33.1.2.5.')) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
return 10; //default
|
||||
|
Reference in New Issue
Block a user