X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/fb1f1d56e8d8a6a86b79c71546e6c114fec2640c..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]