Simplify calc condition for size consistency

master
Heuzef 5 years ago
parent 513b65f432
commit 0f588d19da
  1. 14
      Check.pm

@ -168,21 +168,15 @@ sub action
}
# TOO BIG ?
my $toobig = "1";
my $toobig = 0;
if ( $check->{new_size} > ($check->{new_size_q3} + $check->{new_size_q3} - $check->{new_size_q1}) * 1.5 or $check->{new_size} > $check->{new_size_avg} * 6 ) {
$toobig = "1";
}
else {
$toobig = "0";
$toobig = 1;
}
# TOO SMALL ?
my $toosmall = "1";
my $toosmall = 0;
if ( $check->{new_size} < ($check->{new_size_q1} - $check->{new_size_q3} - $check->{new_size_q1}) * 1.5 or $check->{new_size} < $check->{new_size_avg} / 3 ) {
$toosmall = "1";
}
else {
$toosmall = "0";
$toosmall = 1;
}
my $sizeConsistency = "<strong>ANOMALOUS</strong>";

Loading…
Cancel
Save