Permalink
Browse files

fixed bug where Thread.current[:arived_at] could be nil

  • Loading branch information...
1 parent a525ec4 commit bb8e6473cf9de4b20ce9d283b2d3e7f18825afcf @freels freels committed Apr 15, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/mongrel_proctitle.rb
View
4 lib/mongrel_proctitle.rb
@@ -51,8 +51,8 @@ def request(&block)
@queue_length -= 1
@request_count += 1
- @last_time = Time.now.to_f - Thread.current[:arrived_at]
- @last_request_str = Thread.current[:request_str]
+ @last_time = Time.now.to_f - Thread.current[:arrived_at].to_f
+ @last_request_str = Thread.current[:request_str].to_s
@request_threads.delete(Thread.current)
set_request_list_title

0 comments on commit bb8e647

Please sign in to comment.