From b9047887d75e52f3dde326c56fd40c0ca5509167 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 24 Feb 2021 17:20:56 +0100 Subject: [PATCH] fix speed --- centreon-plugins/network/stormshield/snmp/mode/qos.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/network/stormshield/snmp/mode/qos.pm b/centreon-plugins/network/stormshield/snmp/mode/qos.pm index d020b7ff5..266069e42 100644 --- a/centreon-plugins/network/stormshield/snmp/mode/qos.pm +++ b/centreon-plugins/network/stormshield/snmp/mode/qos.pm @@ -206,7 +206,7 @@ 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); + ($1 * 1000 * 1000): (defined($result->{'speed_' . $_}) ? ($result->{'speed_' . $_} * 1024 * 8) : 0); $result->{'traffic_' . $_} *= 8; $result->{'traffic_' . $_ . '_peak'} *= 8; }