mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 07:34:35 +02:00
fix speed
This commit is contained in:
parent
aef9b21197
commit
27b09e31f2
@ -206,7 +206,7 @@ sub manage_selection {
|
|||||||
|
|
||||||
foreach (('in', 'out')) {
|
foreach (('in', 'out')) {
|
||||||
$result->{'speed_' . $_} = defined($self->{option_results}->{'speed_' . $_}) && $self->{option_results}->{'speed_' . $_} =~ /(\d+)/ ?
|
$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_' . $_} *= 8;
|
||||||
$result->{'traffic_' . $_ . '_peak'} *= 8;
|
$result->{'traffic_' . $_ . '_peak'} *= 8;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user