Skip to content

Commit

Permalink
Merge pull request #3 from jonah-williams/fix-formatted_duration
Browse files Browse the repository at this point in the history
display long durations in seconds
  • Loading branch information
dewski committed Oct 29, 2015
2 parents 0ed4800 + ffb8073 commit 876971c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/peek/views/dalli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def initialize(options = {})
def formatted_duration
ms = @duration.value * 1000
if ms >= 1000
"%.2fms" % ms
"%.2fs" % (ms / 1e3)
else
"%.0fms" % ms
end
Expand Down

0 comments on commit 876971c

Please sign in to comment.