]> git.openstreetmap.org Git - chef.git/commitdiff
Update blocked scale
authorTom Hughes <tom@compton.nu>
Wed, 30 Nov 2016 07:10:25 +0000 (07:10 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 30 Nov 2016 07:10:25 +0000 (07:10 +0000)
cookbooks/tile/templates/default/export.erb

index b91c3957f349b8ff52f5eb07ba2e922314606de9..5e4b97414b9c843390047bc85e06eccf4d56074e 100644 (file)
@@ -70,7 +70,7 @@ idletime = cputimes[3] / sum(cputimes)
 if idletime < 0.2:
   # Abort if the CPU idle time on the machine is too low
   output_error("The server is too busy at the moment. Please wait a few minutes before trying again.", "503 Service Unavailable")
 if idletime < 0.2:
   # Abort if the CPU idle time on the machine is too low
   output_error("The server is too busy at the moment. Please wait a few minutes before trying again.", "503 Service Unavailable")
-elif form.getvalue("scale") == "4600":
+elif form.getvalue("scale") == "3600":
   # Block scraper
   output_error("The server is too busy at the moment. Please wait a few minutes before trying again.", "503 Service Unavailable")
 <% @blocks["user_agents"].each do |user_agent| -%>
   # Block scraper
   output_error("The server is too busy at the moment. Please wait a few minutes before trying again.", "503 Service Unavailable")
 <% @blocks["user_agents"].each do |user_agent| -%>