diff options
author | Mike Limansky <limanski@narod.ru> | 2017-12-23 15:40:30 +0000 |
---|---|---|
committer | Mike Limansky <mike.limansky@gmail.com> | 2017-12-23 23:32:52 +0300 |
commit | 20f46637b7926e685ccbca282736b36fa2dd6d62 (patch) | |
tree | f7cda34be80e34b721ea322fd564fa758cb5c0bd | |
parent | fd9dd4c4c2ae75a0771b4c601856df4f3fcf727a (diff) | |
download | gitlab-ce-20f46637b7926e685ccbca282736b36fa2dd6d62.tar.gz |
Use AtomicReference instead of AtomicFixnum
-rw-r--r-- | lib/gitlab/metrics/method_call.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/metrics/method_call.rb b/lib/gitlab/metrics/method_call.rb index 9112164f22e..28444c2afcc 100644 --- a/lib/gitlab/metrics/method_call.rb +++ b/lib/gitlab/metrics/method_call.rb @@ -5,7 +5,7 @@ module Gitlab # Class for tracking timing information about method calls class MethodCall @@measurement_enabled_cache = Concurrent::AtomicBoolean.new(false) - @@measurement_enabled_cache_expires_at = Concurrent::AtomicFixnum.new(Time.now.to_i) + @@measurement_enabled_cache_expires_at = Concurrent::AtomicReference.new(Time.now.to_i) MUTEX = Mutex.new BASE_LABELS = { module: nil, method: nil }.freeze attr_reader :real_time, :cpu_time, :call_count, :labels |