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