Don't round to seconds/minutes in CommonLogHandler

This commit is contained in:
Sdogruyol 2016-08-14 14:52:50 +03:00
parent aea70fd1e5
commit 849eda06c8
1 changed files with 0 additions and 6 deletions

View File

@ -21,12 +21,6 @@ module Kemal
end
private def elapsed_text(elapsed)
minutes = elapsed.total_minutes
return "#{minutes.round(2)}m" if minutes >= 1
seconds = elapsed.total_seconds
return "#{seconds.round(2)}s" if seconds >= 1
millis = elapsed.total_milliseconds
return "#{millis.round(2)}ms" if millis >= 1