Skip to content

Commit f645ff9

Browse files
authored
Merge pull request rails#50493 from fatkodima/fix-calculation-of-db_runtime
Fix calculation of Active Record :db_runtime metric
2 parents c061e56 + 4f039d0 commit f645ff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/runtime_registry.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ def reset
2525
end
2626

2727
ActiveSupport::Notifications.monotonic_subscribe("sql.active_record") do |name, start, finish, id, payload|
28-
ActiveRecord::RuntimeRegistry.sql_runtime += (finish - start) * 1_000.0
28+
ActiveRecord::RuntimeRegistry.sql_runtime += (finish - start)
2929
end

0 commit comments

Comments
 (0)