From 68305199baa28dec63085fc0f329074cd3d906e0 Mon Sep 17 00:00:00 2001 From: Heuzef Date: Wed, 25 Sep 2019 14:25:16 +0200 Subject: [PATCH] add somes prints --- backuppc_check.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/backuppc_check.pl b/backuppc_check.pl index 963b247..47dc698 100644 --- a/backuppc_check.pl +++ b/backuppc_check.pl @@ -83,6 +83,9 @@ print("Errors : $json->{errors}"); print("\n"); print("Size Consistency : "); +print("\ntoobig : $toobig\n"); +print("\ntoosmall : $toosmall\n"); + # TOO BIG ? 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 ) { @@ -91,6 +94,11 @@ if ( $json->{new_size} > $json->{new_size_q3} + $json->{new_size_q3} - $json->{n else { $toobig = "true"; } + +print("\ntoobig : $toobig\n"); +print("\ntoosmall : $toosmall\n"); + + # TOO SMALL ? 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 ) { @@ -100,6 +108,9 @@ else { $toosmall = "true"; } +print("\ntoobig : $toobig\n"); +print("\ntoosmall : $toosmall\n"); + # Print result if ( $toobig == "false" && $toosmall == "false" ) { print("Normal");