]> git.openstreetmap.org Git - rails.git/blobdiff - script/statistics
Fix locate control popup on the main map to use new translations
[rails.git] / script / statistics
index 8b79523b728730b3b3b22b562c06556937686683..cd9e9afa7f96c25b90a4b1eaca3719a94890dec7 100755 (executable)
@@ -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
 
@@ -86,7 +86,7 @@ rescue StandardError => e
   puts "<p><em>Exception: #{e}</em><br />#{e.backtrace.join('<br />')}</p>"
 end
 
-puts "<p>Report took #{(Time.new - start_time)} seconds to run</p>"
+puts "<p>Report took #{Time.new - start_time} seconds to run</p>"
 puts "</body>"
 puts "</html>"