Skip to content

Commit

Permalink
change reqtime format
Browse files Browse the repository at this point in the history
  • Loading branch information
Issei Naruta committed Oct 31, 2015
1 parent a83ab8a commit 45358a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 5f/webapp/ruby/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def fetch_http(headers, params, call_uri, conf)
$stderr.puts "[API CALL][HTTP][ERROR] #{method} #{call_uri} (#{"%.2f" % (e-s)}s, #{err.inspect}) #{headers.inspect}"
raise
end
$stderr.puts "logtype:api\ttime:#{e.iso8601}\tmethod:#{method}\turi:#{call_uri}\treqtime:#{((e-s)*1000).to_i}"
$stderr.puts "logtype:api\ttime:#{e.iso8601}\tmethod:#{method}\turi:#{call_uri}\treqtime:#{"%.3f" % (e-s)}"
JSON.parse(res.body)
end
end
Expand Down

0 comments on commit 45358a6

Please sign in to comment.