add somes prints

master
Heuzef 5 years ago
parent e2f35e1b9e
commit 68305199ba
  1. 11
      backuppc_check.pl

@ -83,6 +83,9 @@ print("Errors : $json->{errors}");
print("\n"); print("\n");
print("Size Consistency : "); print("Size Consistency : ");
print("\ntoobig : $toobig\n");
print("\ntoosmall : $toosmall\n");
# TOO BIG ? # TOO BIG ?
my $toobig = "true"; my $toobig = "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 ) { 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 ) {
@ -91,6 +94,11 @@ if ( $json->{new_size} > $json->{new_size_q3} + $json->{new_size_q3} - $json->{n
else { else {
$toobig = "true"; $toobig = "true";
} }
print("\ntoobig : $toobig\n");
print("\ntoosmall : $toosmall\n");
# TOO SMALL ? # TOO SMALL ?
my $toosmall = "true"; my $toosmall = "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 ) { 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 ) {
@ -100,6 +108,9 @@ else {
$toosmall = "true"; $toosmall = "true";
} }
print("\ntoobig : $toobig\n");
print("\ntoosmall : $toosmall\n");
# Print result # Print result
if ( $toobig == "false" && $toosmall == "false" ) { if ( $toobig == "false" && $toosmall == "false" ) {
print("Normal"); print("Normal");

Loading…
Cancel
Save