From bd33420732e9d43b7bfe2846f84c833a4c04f3e1 Mon Sep 17 00:00:00 2001 From: Heuzef Date: Thu, 31 Oct 2019 11:13:53 +0100 Subject: [PATCH] Inverse for test --- Check.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Check.pm b/Check.pm index a0a6b10..68f17b7 100644 --- a/Check.pm +++ b/Check.pm @@ -107,7 +107,7 @@ sub action my $sizeConsistencyColor = "Tomato"; my $sizeConsistency = "ANOMALOUS"; - if ( $idBackup > 4 ) { # There are enough backup ? + if ( $idBackup < 4 ) { # There are enough backup ? # 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 and $new_size > $new_size_avg * 6 ) { @@ -137,7 +137,7 @@ sub action # Show summary $str .= < - [$idBackup] $host + $host ($idBackup) $lastAge (Freq: $frequency) $lastXferErrors $ifErrors $sizeConsistency