divide adva optical

This commit is contained in:
qgarnier 2017-07-27 13:53:20 +02:00
parent f7194a53cd
commit 5d7edace05
1 changed files with 2 additions and 2 deletions

View File

@ -211,13 +211,13 @@ sub custom_add_result {
$self->{interface_selected}->{$options{instance}}->{input_power} = undef;
if (defined($self->{results}->{$oid_opticalIfDiagInputPower . '.' . $options{instance}}) &&
$self->{results}->{$oid_opticalIfDiagInputPower . '.' . $options{instance}} != -65535) {
$self->{interface_selected}->{$options{instance}}->{input_power} = $self->{results}->{$oid_opticalIfDiagInputPower . '.' . $options{instance}};
$self->{interface_selected}->{$options{instance}}->{input_power} = $self->{results}->{$oid_opticalIfDiagInputPower . '.' . $options{instance}} / 10;
}
$self->{interface_selected}->{$options{instance}}->{output_power} = undef;
if (defined($self->{results}->{$oid_opticalIfDiagOutputPower . '.' . $options{instance}}) &&
$self->{results}->{$oid_opticalIfDiagOutputPower . '.' . $options{instance}} != -65535) {
$self->{interface_selected}->{$options{instance}}->{output_power} = $self->{results}->{$oid_opticalIfDiagOutputPower . '.' . $options{instance}};
$self->{interface_selected}->{$options{instance}}->{output_power} = $self->{results}->{$oid_opticalIfDiagOutputPower . '.' . $options{instance}} / 10;
}
}