X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/ff044920428608b2c04507ad52d6ab52c9d6555f..3a4b1c2078cd515e93a5f1bf8967f380fbd1646f:/cookbooks/munin/files/default/plugins/api_calls_num diff --git a/cookbooks/munin/files/default/plugins/api_calls_num b/cookbooks/munin/files/default/plugins/api_calls_num index d2f7ea372..c65ae0a7a 100755 --- a/cookbooks/munin/files/default/plugins/api_calls_num +++ b/cookbooks/munin/files/default/plugins/api_calls_num @@ -63,7 +63,7 @@ else min_time, max_time, lines = uris_from_logs delta_t = (max_time - min_time).to_f * 24 * 60 counts = lines. - collect {|x| categorise_uri(x)}. + collect { |x| categorise_uri(x) }. inject(Hash.new) do |h, e| if h.has_key? e h[e] += 1