From 62ffb468561e3b5e8f955dbc657c7b8b28d71cdc Mon Sep 17 00:00:00 2001 From: Heuzef Date: Fri, 11 Oct 2019 17:28:47 +0200 Subject: [PATCH] revert --- Check.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Check.pm b/Check.pm index 965975b..b9f92f3 100644 --- a/Check.pm +++ b/Check.pm @@ -51,8 +51,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