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

Loading…
Cancel
Save