From fe9666e7e2c5dc6752286c5481809fde9dc67eec Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 10 Apr 2020 14:48:39 +0100 Subject: [PATCH] Adjust performance scoring for tile siblings --- cookbooks/tilecache/templates/default/ohai.rb.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/tilecache/templates/default/ohai.rb.erb b/cookbooks/tilecache/templates/default/ohai.rb.erb index f557ddded..5647a4528 100644 --- a/cookbooks/tilecache/templates/default/ohai.rb.erb +++ b/cookbooks/tilecache/templates/default/ohai.rb.erb @@ -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 -- 2.39.5