mirror of https://github.com/rails/rails
Fix calculation of Active Record :db_runtime metric
This commit is contained in:
parent
0fb5f67ac4
commit
4f039d0328
|
@ -25,5 +25,5 @@ module ActiveRecord
|
|||
end
|
||||
|
||||
ActiveSupport::Notifications.monotonic_subscribe("sql.active_record") do |name, start, finish, id, payload|
|
||||
ActiveRecord::RuntimeRegistry.sql_runtime += (finish - start) * 1_000.0
|
||||
ActiveRecord::RuntimeRegistry.sql_runtime += (finish - start)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue