This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Display the machine's hostname

  • Loading branch information...
1 parent 80fb17f commit 608d1c6095dea7c1ed211c0bc4b846d3e1076a8e @defunkt defunkt committed Dec 30, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/request_timer.rb
View
@@ -8,7 +8,7 @@ def start_timer
module Helper
def request_time(text_to_wrap = nil)
time = "%.5f" % (Time.now - $rails_request_timer) if $rails_request_timer
- host = request.env['SERVER_NAME']
+ host = `hostname`
if text_to_wrap
content_tag :span, text_to_wrap, :title => "#{time}s from #{host}", :id => '_rrt'

0 comments on commit 608d1c6

Please sign in to comment.