]> 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 49216861ab63bd9eb26f97bf8ffbe5b2be4bb00e..6be9fc6f553c49ca86e275c7b6de5d0000d69818 100755 (executable)
@@ -65,7 +65,7 @@ else
 
   CALL_TYPES.keys.each do |type|
     count = counts[type] || [0]
-    avg = count.inject(0) { |a, e| a + e } / (1.0 * count.length)
+    avg = count.inject(0) { |acc, elem| acc + elem } / (1.0 * count.length)
     puts "#{type}.value #{avg}"
   end
 end