Skip to content
This repository has been archived by the owner on Nov 1, 2017. It is now read-only.

Commit

Permalink
Display the machine's hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Dec 30, 2008
1 parent 80fb17f commit 608d1c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/request_timer.rb
Expand Up @@ -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'
Expand Down

0 comments on commit 608d1c6

Please sign in to comment.