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