X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/90a349e0bc558441e65156eabb585c578d93fbfd..35171e1e6bceb46b7d575de5dda768eb97f4bd49:/cookbooks/munin/files/default/plugins/api_waits_?ds=sidebyside diff --git a/cookbooks/munin/files/default/plugins/api_waits_ b/cookbooks/munin/files/default/plugins/api_waits_ index f5bbd1104..f575dad1c 100755 --- a/cookbooks/munin/files/default/plugins/api_waits_ +++ b/cookbooks/munin/files/default/plugins/api_waits_ @@ -63,7 +63,7 @@ else end end - CALL_TYPES.keys.each do |type| + CALL_TYPES.each_key do |type| count = counts[type] || [0] avg = count.inject(0) { |acc, elem| acc + elem } / (1.0 * count.length) puts "#{type}.value #{avg}"