+ fix typo threshold
This commit is contained in:
parent
3902c2ea71
commit
1588192292
|
@ -209,13 +209,13 @@ sub check_options {
|
||||||
$self->{overload_th} = {};
|
$self->{overload_th} = {};
|
||||||
foreach my $val (@{$self->{option_results}->{threshold_overload}}) {
|
foreach my $val (@{$self->{option_results}->{threshold_overload}}) {
|
||||||
if ($val !~ /(.*?)=(.*)/) {
|
if ($val !~ /(.*?)=(.*)/) {
|
||||||
$self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'.");
|
$self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'.");
|
||||||
$self->{output}->option_exit();
|
$self->{output}->option_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
my ($filter, $threshold) = ($1, $2);
|
my ($filter, $threshold) = ($1, $2);
|
||||||
if ($self->{output}->is_litteral_status(status => $threshold) == 0) {
|
if ($self->{output}->is_litteral_status(status => $threshold) == 0) {
|
||||||
$self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'.");
|
$self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'.");
|
||||||
$self->{output}->option_exit();
|
$self->{output}->option_exit();
|
||||||
}
|
}
|
||||||
$self->{overload_th}->{$filter} = $threshold;
|
$self->{overload_th}->{$filter} = $threshold;
|
||||||
|
|
Loading…
Reference in New Issue