]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/update-lowzoom.erb
tile: Fix Mac ARM compatibility 2nd bit
[chef.git] / cookbooks / tile / templates / default / update-lowzoom.erb
index c70374de91c4d08de9c988d8372fc56ffbe7bb1c..4f2821dba4ead51c6674a1dffc4ec07538ba5495 100644 (file)
@@ -14,7 +14,7 @@ function update_tiles
     --socket=/var/run/renderd/renderd.sock \
     --num-threads=<%= [4, node.dig('cpu', 'total').to_i - 1, node.dig('cpu', 'cores').to_i - 1].max %> \
     --map="<%= @style %>" \
-    --max-load=<%= node[:cpu][:total] %> \
+    --max-load=<%= [4, node.dig('cpu', 'total').to_i, node.dig('cpu', 'cores').to_i].max %> \
     --min-zoom=0 --max-zoom=12
 }