]> git.openstreetmap.org Git - chef.git/commitdiff
Use correct order for tile numbers
authorTom Hughes <tom@compton.nu>
Wed, 19 Jun 2024 17:26:19 +0000 (18:26 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 19 Jun 2024 17:26:57 +0000 (18:26 +0100)
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 = []