diff --git a/Check.pm b/Check.pm index c536dee..66a0015 100644 --- a/Check.pm +++ b/Check.pm @@ -119,17 +119,15 @@ sub action } # Get result - if ( not $toobig and not $toosmall ) { + if ( not $idBackup > 4) { + $sizeConsistencyColor = "Gray"; + $sizeConsistency = "Not enough backups"; + } + else ( not $toobig and not $toosmall and not $idBackup < 4) { $sizeConsistencyColor = "MediumSeaGreen"; $sizeConsistency = "Normal"; } - # There are enough backup ? - if ( $idBackup == 0 ) { - my $sizeConsistencyColor = "Gray"; - my $sizeConsistency = "Not enough backups"; - } - # Get URL for explore file my $browseFile = "?action=browse&host=$host";