Skip to content

Commit

Permalink
#19 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jul 18, 2019
1 parent 67bc4c1 commit acd550d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pgtk/pool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ def exec(query, args = [], result = 0)
rows
end
end
lag = start - Time.now
lag = Time.now - start
if lag < 1
@log.debug("#{sql}: #{lag.round}ms / #{@conn.object_id}")
@log.debug("#{sql}: #{(lag * 1000).round}ms / #{@conn.object_id}")
else
@log.info("#{sql}: #{format('%.02f', lag)}s")
end
Expand Down

0 comments on commit acd550d

Please sign in to comment.