|
|
@ -96,11 +96,12 @@ sub action |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# Using a mathematical formula to calculate the consistency of the average size, for new files, on all backups |
|
|
|
# Using a mathematical formula to calculate the consistency of the average size, for new files, on all backups |
|
|
|
if ( $Backups[-4]->{type} =~ m/^full|incr$/ ) { # There are enough backup ? |
|
|
|
my $toobig = 0; |
|
|
|
my $toobig = 0; |
|
|
|
my $toosmall = 0; |
|
|
|
my $toosmall = 0; |
|
|
|
my $sizeConsistencyColor = "Tomato"; |
|
|
|
my $sizeConsistencyColor = "Tomato"; |
|
|
|
my $sizeConsistency = "<strong>ANOMALOUS</strong>"; |
|
|
|
my $sizeConsistency = "<strong>ANOMALOUS</strong>"; |
|
|
|
|
|
|
|
|
|
|
|
if ( $Backups[-4] ) { # There are enough backup ? |
|
|
|
|
|
|
|
|
|
|
|
# TOO BIG ? If the size is 6 times higher than usual : |
|
|
|
# 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 ) { |
|
|
|
if ( $new_size > ($new_size_q3 + $new_size_q3 - $new_size_q1) * 1.5 and $new_size > $new_size_avg * 6 ) { |
|
|
|