]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tilecache/templates/default/ohai.rb.erb
Ignore 509 bandwidth limit errors when computing error rates
[chef.git] / 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
             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
             else
               times[host] = times.fetch(host, 0) + 10
             end