summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Monitoring/Plugin.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Monitoring/Plugin.pm b/lib/Monitoring/Plugin.pm
index 3660ba7..7a4617d 100644
--- a/lib/Monitoring/Plugin.pm
+++ b/lib/Monitoring/Plugin.pm
@@ -159,7 +159,7 @@ sub getopts {
159 $self->set_thresholds( 159 $self->set_thresholds(
160 warning => $self->opts->warning, 160 warning => $self->opts->warning,
161 critical => $self->opts->critical, 161 critical => $self->opts->critical,
162 ) if ( defined $self->opts->warning && defined $self->opts->critical ); 162 ) if ( defined $self->opts->warning || defined $self->opts->critical );
163} 163}
164 164
165sub _check_for_opts { 165sub _check_for_opts {