master
Heuzef 5 years ago
parent 96e3084dcc
commit 0fc88178b9
  1. 9
      Check.pm

@ -99,7 +99,9 @@ sub action
if ( $Backups[-4] ) { # There are enough backup ?
my $toobig = 0;
my $toosmall = 0;
my $sizeConsistencyColor = "Tomato";
my $sizeConsistency = "<strong>ANOMALOUS</strong>";
# 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 or $new_size > $new_size_avg * 6 ) {
$toobig = 1;
@ -111,13 +113,12 @@ sub action
}
# Get result
my $sizeConsistencyColor = "Tomato";
my $sizeConsistency = "<strong>ANOMALOUS</strong>";
if ( not $toobig and not $toosmall ) {
$sizeConsistencyColor = "MediumSeaGreen";
$sizeConsistency = "Normal";
}
} else {
}
else {
my $sizeConsistencyColor = "MediumSeaGreen";
my $sizeConsistency = "<em>Not enough backups</em>";
}

Loading…
Cancel
Save