From e23da5cc44eafd9e837bde19f890097809c33a07 Mon Sep 17 00:00:00 2001 From: Heuzef Date: Wed, 30 Oct 2019 14:38:24 +0100 Subject: [PATCH] Change condition or to and --- Check.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Check.pm b/Check.pm index 54a9536..aea96b9 100644 --- a/Check.pm +++ b/Check.pm @@ -103,12 +103,12 @@ sub action my $sizeConsistency = "ANOMALOUS"; # TOO BIG ? If the size is 6 times higher than usual : - if ( $new_size > ($new_size_q3 + $new_size_q3 - $new_size_q1) * 1.5 or $new_size > $new_size_avg * 6 ) { + if ( $new_size > ($new_size_q3 + $new_size_q3 - $new_size_q1) * 1.5 and $new_size > $new_size_avg * 6 ) { $toobig = 1; } # TOO SMALL ? If the size is 3 times lower than usual : - if ( $new_size < ($new_size_q1 - $new_size_q3 - $new_size_q1) * 1.5 or $new_size < $new_size_avg / 3 ) { + if ( $new_size < ($new_size_q1 - $new_size_q3 - $new_size_q1) * 1.5 and $new_size < $new_size_avg / 3 ) { $toosmall = 1; }