X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ba987e5a484374712c87728b662798e57f57ea6a..8724d4f9c9bf439e5dc28a05f04c1a80ca7498c4:/cookbooks/tilecache/templates/default/ohai.rb.erb 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