X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/18176319d3b0a18f6d86e0e26c5798b22787d5b6..e92ed5e09215d67f2bd7dc21a32425d7ec5aa26f:/cookbooks/tile/templates/default/expire-tiles.erb diff --git a/cookbooks/tile/templates/default/expire-tiles.erb b/cookbooks/tile/templates/default/expire-tiles.erb index 82921b7fe..b3a790f6a 100644 --- a/cookbooks/tile/templates/default/expire-tiles.erb +++ b/cookbooks/tile/templates/default/expire-tiles.erb @@ -18,11 +18,11 @@ expiredTime = Time.new(2000, 1, 1) Dir.glob("/var/lib/replicate/expire-queue/changes-*.txt").sort.each do |f| File.open(f, "r") do |file| file.each do |line| - z, y, x = line.split("/") + z, x, y = line.split("/") z = z.to_i + 3 - y = y.to_i * 8 x = x.to_i * 8 + y = y.to_i * 8 hash = []