+ Fix #221 (Thanks targuan!)

This commit is contained in:
garnier-quentin 2015-11-26 15:19:54 +01:00
parent 349c411947
commit 027042901a
1 changed files with 4 additions and 0 deletions

View File

@ -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};
}