Skip to content

Commit

Permalink
rounding benchmark to microseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
trusche committed Mar 1, 2017
1 parent e7e344a commit 7f279f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Log outgoing HTTP requests made from your application. Helps with debugging pesk
This gem works with the following ruby modules and libraries:

* [Net::HTTP](http://www.ruby-doc.org/stdlib-1.9.3/libdoc/net/http/rdoc/index.html)
* [Ethon](https://github.com/typhoeus/ethon) (**Needs work to support latest versions**)
* [Ethon](https://github.com/typhoeus/ethon)
* [Excon](https://github.com/geemus/excon)
* [OpenURI](http://www.ruby-doc.org/stdlib-1.9.3/libdoc/open-uri/rdoc/index.html)
* [Patron](https://github.com/toland/patron)
Expand Down
2 changes: 1 addition & 1 deletion lib/httplog/http_log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def log_status(status)

def log_benchmark(seconds)
return if config.compact_log || !config.log_benchmark
log("Benchmark: #{seconds} seconds")
log("Benchmark: #{seconds.to_f.round(6)} seconds")
end

def log_body(body, encoding = nil, content_type=nil)
Expand Down

0 comments on commit 7f279f0

Please sign in to comment.