diff options
author | Tim Smith <tsmith@chef.io> | 2019-08-15 11:39:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-15 11:39:35 -0700 |
commit | 66f0aec9a605a280c81701f6674e5195d4648a1b (patch) | |
tree | 37331aa367a74331eee92298675f92805d890618 | |
parent | f76c5f583736a5731e2fb6e92c21dc8419655d95 (diff) | |
parent | 567fdcaf038346d30a49246b16f8ca1540af6542 (diff) | |
download | ohai-66f0aec9a605a280c81701f6674e5195d4648a1b.tar.gz |
Merge pull request #1397 from chef/more_debug_time
Use Benchmark.realtime for the main application time as well
-rw-r--r-- | lib/ohai/application.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ohai/application.rb b/lib/ohai/application.rb index a469fc56..cdbac369 100644 --- a/lib/ohai/application.rb +++ b/lib/ohai/application.rb @@ -77,11 +77,11 @@ class Ohai::Application # # @return void def run - elapsed = Benchmark.measure do + elapsed = Benchmark.realtime do configure_ohai run_application end - Ohai::Log.debug("Ohai took #{elapsed.total} total seconds to run.") + Ohai::Log.debug("Ohai took #{elapsed} total seconds to run.") end # parses the CLI options, loads the config file if present, and initializes logging |