diff --git a/lib/grape_logging/middleware/request_logger.rb b/lib/grape_logging/middleware/request_logger.rb index a401ab1..a579881 100644 --- a/lib/grape_logging/middleware/request_logger.rb +++ b/lib/grape_logging/middleware/request_logger.rb @@ -115,7 +115,7 @@ def total_runtime end def view_runtime - total_runtime - db_runtime + (total_runtime - db_runtime).round(2) end def db_runtime