From e3621df7adf02e3cfeb45139c1f0665b6bcde592 Mon Sep 17 00:00:00 2001 From: Heuzef Date: Thu, 31 Oct 2019 10:57:41 +0100 Subject: [PATCH] get num id --- Check.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;