From 1aaff130ba91065be80393771c21803f8fe84554 Mon Sep 17 00:00:00 2001 From: Heuzef Date: Thu, 31 Oct 2019 12:00:07 +0100 Subject: [PATCH] Declare ID backup --- Check.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Check.pm b/Check.pm index 1fecf4b..055e531 100644 --- a/Check.pm +++ b/Check.pm @@ -87,6 +87,7 @@ sub action my $sizes = new Statistics::Descriptive::Full; foreach my $backup ( @Backups ) { + my $idBackup = $Backups[@Backups-1]->{num} if ( @Backups ); # Skip partial or active backups next if ( $backup->{type} !~ m/^full|incr$/ ); # Push all the sizes in our data set to compute avg sizes