From 22fd94d702ef81e55f4b0832187d2bf866d00ba7 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 19 Jun 2024 18:26:19 +0100 Subject: [PATCH] Use correct order for tile numbers --- cookbooks/tile/templates/default/expire-tiles.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = [] -- 2.39.5