From aef9b21197be2baea18516b598c428775abdfd01 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 24 Feb 2021 17:07:47 +0100 Subject: [PATCH] fix qos stormshield calc --- network/stormshield/snmp/mode/qos.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network/stormshield/snmp/mode/qos.pm b/network/stormshield/snmp/mode/qos.pm index 838371ae8..d020b7ff5 100644 --- a/network/stormshield/snmp/mode/qos.pm +++ b/network/stormshield/snmp/mode/qos.pm @@ -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}->{$_}},