From 875aa0bc1782154d751e8673d8756bd7c785ef28 Mon Sep 17 00:00:00 2001 From: Heuzef Date: Wed, 25 Sep 2019 15:03:41 +0200 Subject: [PATCH] =?UTF-8?q?alg=C3=A8bre=20...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backuppc_check.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backuppc_check.pl b/backuppc_check.pl index 8a01a6b..57b8061 100644 --- a/backuppc_check.pl +++ b/backuppc_check.pl @@ -85,7 +85,7 @@ 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 ) { +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"; } else { @@ -94,7 +94,7 @@ else { # 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 ) { +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"; } else {