From 96e3084dcc51f7368275b81ea5368e3780eaf829 Mon Sep 17 00:00:00 2001 From: Heuzef Date: Wed, 30 Oct 2019 14:31:52 +0100 Subject: [PATCH] move var --- Check.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Check.pm b/Check.pm index 29c9d76..1458a38 100644 --- a/Check.pm +++ b/Check.pm @@ -96,10 +96,10 @@ sub action } # Using a mathematical formula to calculate the consistency of the average size, for new files, on all backups - my $toobig = 0; - my $toosmall = 0; - - if ( $Backups[-4] ) { + if ( $Backups[-4] ) { # There are enough backup ? + my $toobig = 0; + my $toosmall = 0; + # TOO BIG ? If the size is 6 times higher than usual : if ( $new_size > ($new_size_q3 + $new_size_q3 - $new_size_q1) * 1.5 or $new_size > $new_size_avg * 6 ) { $toobig = 1;