diff --git a/Check.pm b/Check.pm index b33616f..1906fc6 100644 --- a/Check.pm +++ b/Check.pm @@ -51,7 +51,7 @@ sub action } # ID - my $idBackup = ( $Backups->{num} ); + my $idBackup = $Backups[@Backups-1]->{num} if ( @Backups ); # Age my $lastBackup = ( $Backups[-1]->{type} =~ m/^full|incr$/ ) ? -1 : -2;