Clean debug

master
Heuzef 5 years ago
parent 919f1a140c
commit 66c41421db
  1. 42
      backuppc_check.pl

@ -95,26 +95,6 @@ else {
$toobig = "1"; $toobig = "1";
} }
# Debug
print("\n----------------\n");
print("DEBUG");
print("\n");
print("new_size : $json->{new_size}");
print("\n");
print("new_size_q1 : $json->{new_size_q1}");
print("\n");
print("new_size_q3 : $json->{new_size_q3}");
print("\n");
print("new_size_avg : $json->{new_size_avg}");
print("\n");
print("toobig : $toobig");
print("\n");
print("toosmall : $toosmall");
print("\n----------------\n");
# /Debug
# TOO SMALL ? # TOO SMALL ?
my $toosmall = "1"; my $toosmall = "1";
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 ) { 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 ) {
@ -124,26 +104,6 @@ else {
$toosmall = "1"; $toosmall = "1";
} }
# Debug
print("\n----------------\n");
print("DEBUG");
print("\n");
print("new_size : $json->{new_size}");
print("\n");
print("new_size_q1 : $json->{new_size_q1}");
print("\n");
print("new_size_q3 : $json->{new_size_q3}");
print("\n");
print("new_size_avg : $json->{new_size_avg}");
print("\n");
print("toobig : $toobig");
print("\n");
print("toosmall : $toosmall");
print("\n----------------\n");
# /Debug
# Print result # Print result
if ( $toobig or $toosmall ) { if ( $toobig or $toosmall ) {
print("ANOMALOUS"); print("ANOMALOUS");
@ -155,7 +115,6 @@ print("\n");
print("Random file : .........."); print("Random file : ..........");
print("\n----------------\n"); print("\n----------------\n");
# Debug # Debug
print("\n----------------\n"); print("\n----------------\n");
print("DEBUG"); print("DEBUG");
@ -174,5 +133,4 @@ print("toosmall : $toosmall");
print("\n----------------\n"); print("\n----------------\n");
# /Debug # /Debug
exit(0); exit(0);

Loading…
Cancel
Save