X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/9a9b045372a6f48420a9a6dacfde52c34ab7abce..68e48d97ba70e2675e7a5ae37e2d75b10b743c46:/script/statistics diff --git a/script/statistics b/script/statistics index 912302c2e..cd9e9afa7 100755 --- a/script/statistics +++ b/script/statistics @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require File.dirname(__FILE__) + "/../config/environment" +require File.join(File.dirname(__FILE__), "..", "config", "environment") start_time = Time.now @@ -15,7 +15,7 @@ puts "

OpenStreetMap stats report run at #{start_time}

" begin ActiveRecord::Base.transaction do - user_count = User.where(:status => %w(active confirmed suspended)).count + user_count = User.where(:status => %w[active confirmed suspended]).count tracepoint_count = Tracepoint.count node_count = Node.where(:visible => true).count way_count = Way.where(:visible => true).count @@ -86,7 +86,7 @@ rescue StandardError => e puts "

Exception: #{e}
#{e.backtrace.join('
')}

" end -puts "

Report took #{(Time.new - start_time)} seconds to run

" +puts "

Report took #{Time.new - start_time} seconds to run

" puts "" puts ""