X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/069e33163e0b09a7d647a98c2fde284a16a43b99..f9a223297545b98090c533f10991d60334087fcb:/cookbooks/munin/files/default/plugins/api_calls_num?ds=sidebyside diff --git a/cookbooks/munin/files/default/plugins/api_calls_num b/cookbooks/munin/files/default/plugins/api_calls_num index b1d454228..1c3a28e05 100755 --- a/cookbooks/munin/files/default/plugins/api_calls_num +++ b/cookbooks/munin/files/default/plugins/api_calls_num @@ -64,7 +64,7 @@ else delta_t = (max_time - min_time).to_f * 24 * 60 counts = lines .collect { |x| categorise_uri(x) } - .each_with_object(Hash.new) do |h, e| + .each_with_object({}) do |h, e| if h.key? e h[e] += 1 else