From bafc910ed5a78fafdbd5036f8343c4422ec8804c Mon Sep 17 00:00:00 2001 From: Heuzef Date: Thu, 31 Oct 2019 11:16:22 +0100 Subject: [PATCH] Try another syntax --- Check.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Check.pm b/Check.pm index 68f17b7..2e62256 100644 --- a/Check.pm +++ b/Check.pm @@ -107,7 +107,7 @@ sub action my $sizeConsistencyColor = "Tomato"; my $sizeConsistency = "ANOMALOUS"; - if ( $idBackup < 4 ) { # There are enough backup ? + if ( $idBackup > 4 ) { # There are enough backup ? # 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 and $new_size > $new_size_avg * 6 ) { @@ -124,13 +124,11 @@ sub action $sizeConsistencyColor = "MediumSeaGreen"; $sizeConsistency = "Normal"; } - } - else { - my $sizeConsistencyColor = "MediumSeaGreen"; + } else { + my $sizeConsistencyColor = "Gray"; my $sizeConsistency = "Not enough backups"; } - # Get URL for explore file my $browseFile = "?action=browse&host=$host";