Permalink
Browse files

RUBY-1024 make sure not to define the queue time constants more than …

…once
  • Loading branch information...
gnarg committed Feb 16, 2013
1 parent f223dd4 commit 59711d77fd4abb7c7cd35d2adf2801c9cf38c619
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/new_relic/agent/instrumentation/queue_time.rb
@@ -11,12 +11,11 @@ module QueueTime
QUEUE_DURATION_HEADER = 'HTTP_X_QUEUE_TIME'
MIDDLEWARE_START_HEADER = 'HTTP_X_MIDDLEWARE_START'
ALL_QUEUE_METRIC = 'WebFrontend/QueueTime'
+ # any timestamps before this are thrown out and the parser
+ # will try again with a larger unit (2000/1/1 UTC)
+ EARLIEST_ACCEPTABLE_TIMESTAMP = 946684800
end
- # any timestamps before this are thrown out and the parser
- # will try again with a larger unit (2000/1/1 UTC)
- EARLIEST_ACCEPTABLE_TIMESTAMP = 946684800
-
module_function
def parse_frontend_timestamp(headers)

0 comments on commit 59711d7

Please sign in to comment.