X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/069e33163e0b09a7d647a98c2fde284a16a43b99..f9a223297545b98090c533f10991d60334087fcb:/cookbooks/munin/files/default/plugins/api_waits_ diff --git a/cookbooks/munin/files/default/plugins/api_waits_ b/cookbooks/munin/files/default/plugins/api_waits_ index 5eaa81a57..eb2a63686 100755 --- a/cookbooks/munin/files/default/plugins/api_waits_ +++ b/cookbooks/munin/files/default/plugins/api_waits_ @@ -54,7 +54,7 @@ if ARGV[0] == 'config' else counts = uri_and_times_from_status(server) .collect { |x, y| [categorise_uri(x), y] } - .each_with_object(Hash.new) do |h, e| + .each_with_object({}) do |h, e| category, time = e if h.key? category h[category] += [time]