From e2f35e1b9e9d7cdab5880f527cbb94bf3215e4af Mon Sep 17 00:00:00 2001 From: Heuzef Date: Wed, 25 Sep 2019 11:53:41 +0200 Subject: [PATCH] Clean useless "errors infos" --- backuppc_check.pl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/backuppc_check.pl b/backuppc_check.pl index 117fe14..963b247 100644 --- a/backuppc_check.pl +++ b/backuppc_check.pl @@ -40,9 +40,6 @@ if ( $host ) { new_size_q3 => 0 }; - my $lastXferErrors = 0; - my $maxErrors = 0; - my $new_size_of_last_full = 0; my @bpc_info = $bpc->BackupInfoRead($host); my $sizes = new Statistics::Descriptive::Full; @@ -67,7 +64,6 @@ if ( $host ) { $json->{new_size_q3} = eval { int $sizes->quantile(3) } || 0; $json->{age} = time - $bpc_info[$i]->{startTime}; $json->{last_age} = sprintf("%.1f", ($json->{age}) / 84600); - $json->{max_errors} = $conf->{MaxXferError} || 0; } }