From 71c97c7012edfe1bf6cc031012554a75c45503af Mon Sep 17 00:00:00 2001 From: Heuzef Date: Wed, 25 Sep 2019 11:48:44 +0200 Subject: [PATCH] Clean somes entry --- backuppc_check.pl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/backuppc_check.pl b/backuppc_check.pl index e861389..7364fff 100644 --- a/backuppc_check.pl +++ b/backuppc_check.pl @@ -50,10 +50,6 @@ if ( $host ) { foreach my $backup ( @bpc_info ) { # Skip partial or active backups next if ( $backup->{type} !~ m/^full|incr$/ ); - if ( $backup->{type} eq "full" ) { - $json->{full_size} = $backup->{size}; - $new_size_of_last_full = $backup->{sizeNew}; - } # Push all the sizes in our data set to compute avg sizes # Exclude backup N°0 as it'll always have much more new data than normal backups $sizes->add_data($backup->{sizeNew}) unless ( $backup->{num} == 0 );