X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/f30f230da23603e3c7598205219ce01e9820c470..35171e1e6bceb46b7d575de5dda768eb97f4bd49:/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 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