mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-29 08:34:46 +02:00
+ Fix #221 (Thanks targuan!)
This commit is contained in:
parent
0543c47f49
commit
9973306c2e
@ -1217,6 +1217,10 @@ sub add_result_cast {
|
||||
}
|
||||
}
|
||||
|
||||
foreach (('iucast', 'imcast', 'ibcast', 'oucast', 'omcast', 'omcast')) {
|
||||
$self->{interface_selected}->{$_} = 0 if (!defined($self->{interface_selected}->{$_}));
|
||||
}
|
||||
|
||||
$self->{interface_selected}->{$options{instance}}->{total_in_packets} = $self->{interface_selected}->{$options{instance}}->{iucast} + $self->{interface_selected}->{$options{instance}}->{imcast} + $self->{interface_selected}->{$options{instance}}->{ibcast};
|
||||
$self->{interface_selected}->{$options{instance}}->{total_out_packets} = $self->{interface_selected}->{$options{instance}}->{oucast} + $self->{interface_selected}->{$options{instance}}->{omcast} + $self->{interface_selected}->{$options{instance}}->{obcast};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user