Skip to content

Commit 4f039d0

Browse files
committed
Fix calculation of Active Record :db_runtime metric
1 parent 0fb5f67 commit 4f039d0

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)