]> git.openstreetmap.org Git - chef.git/commitdiff
Adjust performance scoring for tile siblings
authorTom Hughes <tom@compton.nu>
Fri, 10 Apr 2020 13:48:39 +0000 (14:48 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 10 Apr 2020 15:02:25 +0000 (16:02 +0100)
cookbooks/tilecache/templates/default/ohai.rb.erb

index f557ddded4801e66645033c556b73b14b7afa833..5647a4528010e54fc8f35dacb6bb6f82455a8e4e 100644 (file)
@@ -18,7 +18,7 @@ Ohai.plugin(:TileCache) do
             host = Regexp.last_match(3)
 
             if status == 200 then
-              times[host] = times.fetch(host, 0) + time - 1
+              times[host] = times.fetch(host, 0) + (time + 1) * (time + 1) - 1
             else
               times[host] = times.fetch(host, 0) + 10
             end