+ fix typo threshold

This commit is contained in:
Sims24 2016-05-23 14:24:26 +02:00
parent ccf1d8f1e4
commit f8d4309cfe
1 changed files with 2 additions and 2 deletions

View File

@ -81,13 +81,13 @@ sub check_options {
$self->{overload_th} = {};
foreach my $val (@{$self->{option_results}->{threshold_overload}}) {
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();
}
my ($label, $filter, $threshold) = ($1, $2, $3);
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->{overload_th}->{$label} = {} if (!defined($self->{overload_th}->{$label}));