From 33e3ba50549f0606e6823cb3d208368daf35f3a6 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 15:21:51 +0200 Subject: [PATCH] + fix typo threshold (sub) --- storage/dell/TL2000/mode/globalstatus.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/storage/dell/TL2000/mode/globalstatus.pm b/storage/dell/TL2000/mode/globalstatus.pm index c9fdcaa71..5c055f623 100644 --- a/storage/dell/TL2000/mode/globalstatus.pm +++ b/storage/dell/TL2000/mode/globalstatus.pm @@ -48,18 +48,18 @@ sub new { return $self; } -sub check_treshold_overload { +sub check_threshold_overload { my ($self, %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 ($filter, $threshold) = ($1, $2); 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}->{$filter} = $threshold; @@ -69,7 +69,7 @@ sub check_treshold_overload { sub check_options { my ($self, %options) = @_; $self->SUPER::init(%options); - $self->check_treshold_overload(); + $self->check_threshold_overload(); } sub get_severity { @@ -118,4 +118,4 @@ Example: --threshold-overload='(unknown|non critical)=critical' =back =cut - \ No newline at end of file +