Function for Size Consistency is valid now :)

master
Heuzef 5 years ago
parent b6f8862f17
commit 88dc2a720c
  1. 2
      backuppc_check.pl

@ -57,7 +57,7 @@ if ( $host ) {
my $i = ( $bpc_info[-1]->{type} =~ m/^full|incr$/ ) ? -1 : -2; my $i = ( $bpc_info[-1]->{type} =~ m/^full|incr$/ ) ? -1 : -2;
$json->{errors} = $bpc_info[$i]->{xferErrs}; $json->{errors} = $bpc_info[$i]->{xferErrs};
$json->{new_size} = 501898; $json->{new_size} = $bpc_info[$i]->{sizeNew};
$json->{new_size_avg} = int $sizes->mean; $json->{new_size_avg} = int $sizes->mean;
$json->{new_size_median} = int $sizes->median; $json->{new_size_median} = int $sizes->median;
$json->{new_size_q1} = eval { int $sizes->quantile(1) } || 0; $json->{new_size_q1} = eval { int $sizes->quantile(1) } || 0;

Loading…
Cancel
Save