]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/files/default/plugins/api_waits_
Fix rubocop warnings
[chef.git] / cookbooks / munin / files / default / plugins / api_waits_
index f5bbd1104560d499fbc24599736fbbbf19b8a6b7..f575dad1c6df39a3b0e36df4ebe4e35822b6a3c7 100755 (executable)
@@ -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}"