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

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

Loading…
Cancel
Save