Hide verbose

master
Heuzef 5 years ago
parent c9dc059180
commit 39e379bcb5
  1. 36
      check_size_consistency.pl

@ -156,24 +156,25 @@ Usage: $0 --host=<host> or --entity=<entity>
EOF
}
print("\n----------------\n");
print("new_size_median : $json->{new_size_median}");
print("\n");
print("new_size_avg : $json->{new_size_avg}");
print("\n");
print("new_size_q3 : $json->{new_size_q3}");
print("\n");
print("new_size : $json->{new_size}");
print("\n");
print("new_size_q1 : $json->{new_size_q1}");
print("\n");
print("full_size : $json->{full_size}");
print("\n----------------\n");
print("\n----------------\n");
# VERBOSE
# print("\n----------------\n");
# print("new_size_median : $json->{new_size_median}");
# print("\n");
# print("new_size_avg : $json->{new_size_avg}");
# print("\n");
# print("new_size_q3 : $json->{new_size_q3}");
# print("\n");
# print("new_size : $json->{new_size}");
# print("\n");
# 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 = "true";
if ( 1 > $json->{new_size_q3} + $json->{new_size_q3} - $json->{new_size_q1} * 1.5 && $json->{new_size} > $json->{new_size_avg} * 6 ) {
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 {
@ -181,7 +182,7 @@ else {
}
# TOO BIG ?
my $toobig = "true";
if ( 99999999999999 < $json->{new_size_q1} - $json->{new_size_q3} - $json->{new_size_q1} * 1.5 && $json->{new_size} < $json->{new_size_avg} / 3 ) {
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 {
@ -195,5 +196,4 @@ if ( $toosmall == "false" && $toobig == "false" ) {
else {
print("ANOMALOUS");
}
print("\n----------------\n");
exit(0);

Loading…
Cancel
Save