fix qos stormshield calc

This commit is contained in:
garnier-quentin 2021-02-24 17:07:47 +01:00
parent ec53fb962c
commit aef9b21197
1 changed files with 2 additions and 2 deletions

View File

@ -207,8 +207,8 @@ sub manage_selection {
foreach (('in', 'out')) {
$result->{'speed_' . $_} = defined($self->{option_results}->{'speed_' . $_}) && $self->{option_results}->{'speed_' . $_} =~ /(\d+)/ ?
($1 * 1000 * 1000): (defined($result->{'speed_' . $_}) ? ($result->{'speed_' . $_} * 1024 * 1000) : 0);
$result->{'traffic_' . $_} *= 1000;
$result->{'traffic_' . $_ . '_peak'} *= 1000;
$result->{'traffic_' . $_} *= 8;
$result->{'traffic_' . $_ . '_peak'} *= 8;
}
$self->{qos}->{$_} = {
%{$self->{qos}->{$_}},