Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Display the machine's hostname

  • Loading branch information...
commit 608d1c6095dea7c1ed211c0bc4b846d3e1076a8e 1 parent 80fb17f
Chris Wanstrath authored December 30, 2008

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/request_timer.rb
2  lib/request_timer.rb
@@ -8,7 +8,7 @@ def start_timer
8 8
   module Helper
9 9
     def request_time(text_to_wrap = nil)
10 10
       time = "%.5f" % (Time.now - $rails_request_timer) if $rails_request_timer
11  
-      host = request.env['SERVER_NAME']
  11
+      host = `hostname`
12 12
 
13 13
       if text_to_wrap
14 14
         content_tag :span, text_to_wrap, :title => "#{time}s from #{host}", :id => '_rrt'

0 notes on commit 608d1c6

Please sign in to comment.
Something went wrong with that request. Please try again.