|
|
@ -105,12 +105,8 @@ 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 |
|
|
|
my $toobig = 0; |
|
|
|
my $toobig = 0; |
|
|
|
my $toosmall = 0; |
|
|
|
my $toosmall = 0; |
|
|
|
|
|
|
|
my $sizeConsistencyColor = "Tomato"; |
|
|
|
# There are enough backup ? |
|
|
|
my $sizeConsistency = "<strong>ANOMALOUS</strong>"; |
|
|
|
if ( $idBackup < 4 ) { |
|
|
|
|
|
|
|
my $sizeConsistencyColor = "Gray"; |
|
|
|
|
|
|
|
my $sizeConsistency = "<em>Not enough backups</em>"; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 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 ) { |
|
|
@ -126,12 +122,9 @@ sub action |
|
|
|
if ( not $toobig and not $toosmall ) { |
|
|
|
if ( not $toobig and not $toosmall ) { |
|
|
|
$sizeConsistencyColor = "MediumSeaGreen"; |
|
|
|
$sizeConsistencyColor = "MediumSeaGreen"; |
|
|
|
$sizeConsistency = "Normal"; |
|
|
|
$sizeConsistency = "Normal"; |
|
|
|
} else { |
|
|
|
|
|
|
|
my $sizeConsistencyColor = "Tomato"; |
|
|
|
|
|
|
|
my $sizeConsistency = "<strong>ANOMALOUS</strong>"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Get URL for explore file |
|
|
|
# Get URL for explore file |
|
|
|
my $browseFile = "?action=browse&host=$host"; |
|
|
|
my $browseFile = "?action=browse&host=$host"; |
|
|
|
|
|
|
|
|
|
|
|