Add function for print result of Size Consistency

master
Heuzef 5 years ago
parent 3861fac733
commit 69f970a05c
  1. 22
      check_size_consistency.pl

@ -169,4 +169,26 @@ print("new_size_q1 : $json->{new_size_q1}");
print("\n");
print("full_size : $json->{full_size}");
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
# 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
print("Size Consistency : ");
if ( $toosmall == "false" AND $toobig == "false" ) {
print("Normal");
}
else {
print("ANOMALOUS");
}
print("\n----------------\n");
exit(0);

Loading…
Cancel
Save