Adding math formule

master
Heuzef 5 years ago
parent e0e5f1015d
commit 9a6e8d1c76
  1. 23
      check_size_consistency.pl

@ -172,16 +172,21 @@ print("\n----------------\n");
print("\n----------------\n");
# TOO SMALL ?
my $toosmall = "false";
# $json->{new_size} > $json->{new_size_q3} + $json->{new_size_q3} - $json->{new_size_q1}) * 1.5
# AND
# $json->{new_size} > $json->{new_size_avg} * 6
my $toosmall = "true";
if ( $json->{new_size} > $json->{new_size_q3} + $json->{new_size_q3} - $json->{new_size_q1}) * 1.5 && $json->{new_size} > $json->{new_size_avg} * 6 ) {
$toosmall = "false";
}
else {
$toosmall = "true";
}
# TOO BIG ?
my $toobig = "false";
# $json->{new_size} < $json->{new_size_q1} - $json->{new_size_q3} - $json->{new_size_q1}) * 1.5
# AND
# $json->{new_size} < $json->{new_size_avg} / 3
my $toobig = "true";
if ( $json->{new_size} < $json->{new_size_q1} - $json->{new_size_q3} - $json->{new_size_q1}) * 1.5 && $json->{new_size} < $json->{new_size_avg} / 3 ) {
$toobig = "false";
}
else {
$toobig = "true";
}
print("Size Consistency : ");
if ( $toosmall == "false" && $toobig == "false" ) {

Loading…
Cancel
Save