From 010fa2cd80c9f91eac3406ba95abbc1aa45807fd Mon Sep 17 00:00:00 2001 From: Heuzef Date: Wed, 25 Sep 2019 15:34:23 +0200 Subject: [PATCH] Inverse bolean --- backuppc_check.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backuppc_check.pl b/backuppc_check.pl index 57b8061..590c94a 100644 --- a/backuppc_check.pl +++ b/backuppc_check.pl @@ -86,19 +86,19 @@ print("Size Consistency : "); # TOO BIG ? 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 = "0"; + $toobig = "1"; } else { - $toobig = "1"; + $toobig = "0"; } # TOO SMALL ? 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 = "0"; + $toosmall = "1"; } else { - $toosmall = "1"; + $toosmall = "0"; } # Print result