diff --git a/Check.pm b/Check.pm index 57597b1..09f9700 100644 --- a/Check.pm +++ b/Check.pm @@ -104,8 +104,6 @@ sub action # Using a mathematical formula to calculate the consistency of the average size, for new files, on all backups my $toobig = 0; my $toosmall = 0; - my $sizeConsistencyColor = "Tomato"; - my $sizeConsistency = "ANOMALOUS"; # There are enough backup ? if ( $idBackup < 4 ) { @@ -127,6 +125,9 @@ sub action if ( not $toobig and not $toosmall ) { $sizeConsistencyColor = "MediumSeaGreen"; $sizeConsistency = "Normal"; + } else { + my $sizeConsistencyColor = "Tomato"; + my $sizeConsistency = "ANOMALOUS"; } }