From 8bb85a1191bb1a78fd9273cfc636bffab0a03b11 Mon Sep 17 00:00:00 2001 From: Heuzef Date: Fri, 11 Oct 2019 17:31:21 +0200 Subject: [PATCH] revert --- Check.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Check.pm b/Check.pm index b9f92f3..9591d66 100644 --- a/Check.pm +++ b/Check.pm @@ -52,13 +52,12 @@ sub action # Age for ( my $i = 0 ; $i < @Backups ; $i++ ) { - if ( $Backups[$i]{type} eq "full" or "incr" ) { if ( $Backups[$i]{type} eq "full" or "incr" ) { - $lastAge = sprintf("%.1f", (time - $Backups[-1]{startTime}) / (24 * 3600)); $lastAge = sprintf("%.1f", (time - $Backups[-1]{startTime}) / (24 * 3600)); } } + # Color for age if ( $lastAge < $frequency ) { $lastAgeColor = "MediumSeaGreen";