X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/52798119cec959afc55fabdae6501e73cbce8c4a..46f4a6b13596f75dc2fabc256346b8bb172440f5:/cookbooks/munin/files/default/plugins/api_calls_status?ds=sidebyside diff --git a/cookbooks/munin/files/default/plugins/api_calls_status b/cookbooks/munin/files/default/plugins/api_calls_status index 0d7c9b645..4a9623f9b 100755 --- a/cookbooks/munin/files/default/plugins/api_calls_status +++ b/cookbooks/munin/files/default/plugins/api_calls_status @@ -40,7 +40,7 @@ if ARGV[0] == "config" else statistics = JSON.parse(File.read("/srv/www.openstreetmap.org/rails/tmp/statistics.json")) - HTTP_STATUSES.keys.each do |code| + HTTP_STATUSES.each_key do |code| count = statistics["status"][code] || 0 puts "http#{code}.value #{count}" end