From 7004a8f1885ed19a072119d0bb777dd120308e39 Mon Sep 17 00:00:00 2001 From: Heuzef Date: Wed, 25 Sep 2019 11:20:38 +0200 Subject: [PATCH] Remove "type" --- backuppc_check.pl | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/backuppc_check.pl b/backuppc_check.pl index b4e0e89..f8f522e 100644 --- a/backuppc_check.pl +++ b/backuppc_check.pl @@ -67,12 +67,6 @@ if ( $host ) { $json->{errors} = $bpc_info[$i]->{xferErrs}; $json->{new_size} = $bpc_info[$i]->{sizeNew}; - $json->{type} = $bpc_info[$i]->{type}; - $json->{comp_ratio} = ( $bpc_info[$i]->{sizeNew} > 0 ) ? - sprintf( "%.2f", 100 - ( $bpc_info[$i]->{sizeNewComp} * 100 / $bpc_info[$i]->{sizeNew} ) ) - : - 0; - $json->{new_size_avg} = int $sizes->mean; $json->{new_size_median} = int $sizes->median; # Some old versions of Statistics::Descriptive (eg, on el5) do not support quantile @@ -90,8 +84,7 @@ if ( $host ) { perf => 0, size => 0, hosts => 0, - bkp => 0, - ratio => 0 + bkp => 0 }; my $total_new = 0;