diff --git a/Check.pm b/Check.pm
index aea96b9..1742599 100644
--- a/Check.pm
+++ b/Check.pm
@@ -96,7 +96,7 @@ sub action
}
# Using a mathematical formula to calculate the consistency of the average size, for new files, on all backups
- #if ( $Backups[-4] ) { # There are enough backup ?
+ if ( $Backups[-4]->{type} =~ m/^full|incr$/ ) { # There are enough backup ?
my $toobig = 0;
my $toosmall = 0;
my $sizeConsistencyColor = "Tomato";
@@ -117,11 +117,11 @@ sub action
$sizeConsistencyColor = "MediumSeaGreen";
$sizeConsistency = "Normal";
}
- #}
- #else {
- # my $sizeConsistencyColor = "MediumSeaGreen";
- # my $sizeConsistency = "Not enough backups";
- #}
+ }
+ else {
+ my $sizeConsistencyColor = "MediumSeaGreen";
+ my $sizeConsistency = "Not enough backups";
+ }
# Get URL for explore file