diff --git a/Check.pm b/Check.pm index a8e7f36..cdde209 100644 --- a/Check.pm +++ b/Check.pm @@ -51,8 +51,8 @@ sub action } # Age - my $lastBackup = ( @Backups[-1]->{type} =~ m/^full|incr$/ ) ? -1 : -2; - $lastAge = sprintf("%.1f", (time - $Backups[$lastBackup]{startTime}) / (24 * 3600)); + my $lastBackup = ( $Backups[-1]->{type} =~ m/^full|incr$/ ) ? -1 : -2; + $lastAge = sprintf("%.1f", (time - $Backups[$lastBackup]->{startTime}) / (24 * 3600)); # Color for age if ( $lastAge < $frequency ) {