diff --git a/Check.pm b/Check.pm index 30bfcc9..2788373 100644 --- a/Check.pm +++ b/Check.pm @@ -107,7 +107,7 @@ sub action my $sizeConsistencyColor = "Tomato"; my $sizeConsistency = "ANOMALOUS"; - if ( scalar @Backups > 4 ) { # There are enough backup ? + if ( $backup->{num} > 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 ) {