We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31a62d8 commit 5d3ef58Copy full SHA for 5d3ef58
1 file changed
snmp/borgbackup
@@ -317,6 +317,7 @@ sub finish {
317
}
318
319
my $j = JSON->new;
320
+ $j->allow_nonref(1);
321
if ($pretty) {
322
$j->pretty(1);
323
$j->canonical(1);
@@ -608,7 +609,7 @@ foreach my $repo (@repos) {
608
609
} else {
610
if ( defined( $info->{cache} ) && defined( $info->{cache}{stats} ) ) {
611
for my $stat (@stats) {
- $repo_info->{$stat} = $info->{cache}{stats}{$stat};
612
+ $repo_info->{$stat} = $info->{cache}{stats}{$stat} + 0;
613
614
if ($verbose) {
615
print STDERR " Stats: total_size=" . $repo_info->{total_size} . ", total_csize=" . $repo_info->{total_csize} . "\n";
0 commit comments