]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/expire-tiles.erb
Use ruby cookbook to install ruby for prometheus
[chef.git] / cookbooks / tile / templates / default / expire-tiles.erb
index 82921b7fea627275867d73177e0c86ee03a0c686..b3a790f6a3f880111377d0c9ff787db750a24cf1 100644 (file)
@@ -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 = []