:trkpts => "GPX trackpoints calls",
:web => "Web site traffic",
:other => "Other API calls"
-}
+}.freeze
if ARGV[0] == "config"
puts "graph_title Requests processed"
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