From 933089ff07848dd5dcfe22602d85a98980052bc6 Mon Sep 17 00:00:00 2001 From: Heuzef Date: Thu, 31 Oct 2019 11:54:36 +0100 Subject: [PATCH] Try modif condition --- Check.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Check.pm b/Check.pm index 57597b1..09f9700 100644 --- a/Check.pm +++ b/Check.pm @@ -104,8 +104,6 @@ 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; - my $sizeConsistencyColor = "Tomato"; - my $sizeConsistency = "ANOMALOUS"; # There are enough backup ? if ( $idBackup < 4 ) { @@ -127,6 +125,9 @@ sub action if ( not $toobig and not $toosmall ) { $sizeConsistencyColor = "MediumSeaGreen"; $sizeConsistency = "Normal"; + } else { + my $sizeConsistencyColor = "Tomato"; + my $sizeConsistency = "ANOMALOUS"; } }