From c39e383a2c54fa13e019e30bc1473930f2afd230 Mon Sep 17 00:00:00 2001 From: Heuzef Date: Wed, 25 Sep 2019 14:33:01 +0200 Subject: [PATCH] Replace bolean --- backuppc_check.pl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/backuppc_check.pl b/backuppc_check.pl index 68c6095..1c73340 100644 --- a/backuppc_check.pl +++ b/backuppc_check.pl @@ -87,12 +87,12 @@ print("\ntoobig : $toobig\n"); print("\ntoosmall : $toosmall\n"); # TOO BIG ? -my $toobig = "true"; +my $toobig = "1"; 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 ) { - $toobig = "false"; + $toobig = "0"; } else { - $toobig = "true"; + $toobig = "1"; } print("\ntoobig : $toobig\n"); @@ -100,19 +100,19 @@ print("\ntoosmall : $toosmall\n"); # TOO SMALL ? -my $toosmall = "true"; +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 ) { - $toosmall = "false"; + $toosmall = "0"; } else { - $toosmall = "true"; + $toosmall = "1"; } print("\ntoobig : $toobig\n"); print("\ntoosmall : $toosmall\n"); # Print result -if ( $toobig eq "false" && $toosmall eq "false" ) { +if ( $toobig == "0" && $toosmall == "0" ) { print("Normal"); } else {