Skip to content

Commit

Permalink
fix regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
stoecker committed Jun 10, 2020
1 parent ec73c36 commit 22cae90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/tirex-tiledir-stat
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ if (scalar(@ARGV) == 0)
$ARGV[0] = Tirex::Config::get('stats_dir', '/var/lib/tirex/stats') . '/tiles.stats';
}
my $json = join('', <>);
$json =~ s/\n}\n\n{/,/g; # join individual files
$json =~ s/\n\}\n\n\{/,/g; # join individual files

my $stats = JSON::from_json($json);

Expand Down

0 comments on commit 22cae90

Please sign in to comment.