From 7d5aecf2b3e081d545099e12f1f85dd53b5f1d3f Mon Sep 17 00:00:00 2001 From: Heuzef Date: Thu, 31 Oct 2019 12:24:48 +0100 Subject: [PATCH] Try another way --- Check.pm | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Check.pm b/Check.pm index c536dee..66a0015 100644 --- a/Check.pm +++ b/Check.pm @@ -119,17 +119,15 @@ sub action } # Get result - if ( not $toobig and not $toosmall ) { + if ( not $idBackup > 4) { + $sizeConsistencyColor = "Gray"; + $sizeConsistency = "Not enough backups"; + } + else ( not $toobig and not $toosmall and not $idBackup < 4) { $sizeConsistencyColor = "MediumSeaGreen"; $sizeConsistency = "Normal"; } - # There are enough backup ? - if ( $idBackup == 0 ) { - my $sizeConsistencyColor = "Gray"; - my $sizeConsistency = "Not enough backups"; - } - # Get URL for explore file my $browseFile = "?action=browse&host=$host";