From cb9c86bc8316a9b63599b989df6db6becb4fcb3b Mon Sep 17 00:00:00 2001 From: Vishal Telangre Date: Tue, 16 Apr 2019 03:26:16 +0530 Subject: Fix: #cpu_time doesn't work for a `ActiveSupport::Notifications::Fanout::Subscribers::Timed` subscriber --- activesupport/lib/active_support/notifications/instrumenter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/notifications/instrumenter.rb b/activesupport/lib/active_support/notifications/instrumenter.rb index a03e7e483e..1940b33799 100644 --- a/activesupport/lib/active_support/notifications/instrumenter.rb +++ b/activesupport/lib/active_support/notifications/instrumenter.rb @@ -69,8 +69,8 @@ module ActiveSupport @end = ending @children = [] @duration = nil - @cpu_time_start = nil - @cpu_time_finish = nil + @cpu_time_start = 0 + @cpu_time_finish = 0 @allocation_count_start = 0 @allocation_count_finish = 0 end -- cgit v1.2.3