diff --git a/Check.pm b/Check.pm index 7f1fbdf..b8589f8 100644 --- a/Check.pm +++ b/Check.pm @@ -126,11 +126,10 @@ sub action new_size_q3 => 0 }; - my @bpc_info = $bpc->BackupInfoRead($host); my $sizes = new Statistics::Descriptive::Full; - if ( scalar( @bpc_info ) ){ - foreach my $backup ( @bpc_info ) { + if ( scalar( @Backups ) ){ + foreach my $backup ( @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