mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix Arista interface bias current divisor (#9728)
* Remove exception * Add test data * Update arista_eos.json
This commit is contained in:
committed by
Tony Murray
parent
d2af4bef42
commit
80f31b4831
@@ -110,13 +110,6 @@ if (!empty($entity_oids)) {
|
||||
$divisor = $divisor.str_pad('', $entry['entPhySensorPrecision'], '0');
|
||||
}
|
||||
|
||||
if ($device['os'] === 'arista_eos') {
|
||||
if ($entry['entPhySensorScale'] == 'milli' && $entry['entPhySensorType'] == 'amperes') {
|
||||
$divisor = '1';
|
||||
$multiplier = '1';
|
||||
}
|
||||
}
|
||||
|
||||
$current = ($current * $multiplier / $divisor);
|
||||
if ($type == 'temperature') {
|
||||
if ($current > '200') {
|
||||
|
Reference in New Issue
Block a user