Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

alter method signatures for testing

  • Loading branch information...
commit 6a6e84f2b504b44dc17e46f42ebb1966c162d5f1 1 parent f52e73e
@kornypoet kornypoet authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/goliath/chimp/rack/server_metrics.rb
View
2  lib/goliath/chimp/rack/server_metrics.rb
@@ -26,7 +26,7 @@ def post_process(env, status, headers, body)
env['status'][:requests] ||= Hash.new{ |h, k| h[k] = Hash.new{ |h, k| h[k] = base_metrics } }
request_key = extract_from_env(env, env_key, default)
request_method = env['REQUEST_METHOD'].downcase.to_sym
- metrics = env.status[:requests][request_key][request_method]
+ metrics = env['status'][:requests][request_key][request_method]
metrics[:count] += 1
elapsed_millis = ((Time.now.to_f - env[:start_time]) * 1000).round
metrics[:total_millis] += elapsed_millis
Please sign in to comment.
Something went wrong with that request. Please try again.