X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f30f230da23603e3c7598205219ce01e9820c470..27968a88f8d7fcc542cee54ebc9d66093564fda4:/cookbooks/munin/files/default/plugins/api_calls_num?ds=inline diff --git a/cookbooks/munin/files/default/plugins/api_calls_num b/cookbooks/munin/files/default/plugins/api_calls_num index e2f74d9ff..e776505d2 100755 --- a/cookbooks/munin/files/default/plugins/api_calls_num +++ b/cookbooks/munin/files/default/plugins/api_calls_num @@ -27,7 +27,7 @@ if ARGV[0] == "config" else statistics = JSON.parse(File.read("/srv/www.openstreetmap.org/rails/tmp/statistics.json")) - CALL_TYPES.keys.each do |type| + CALL_TYPES.each_key do |type| count = statistics["uri"][type.to_s] || 0 puts "#{type}.value #{count}" end