We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b757da commit 9d00838Copy full SHA for 9d00838
lib/redis_client/cluster/node/latency_replica.rb
@@ -47,9 +47,9 @@ def measure_latencies(clients) # rubocop:disable Metrics/AbcSize
47
48
min = DUMMY_LATENCY_NSEC
49
MEASURE_ATTEMPT_COUNT.times do
50
- starting = Process.clock_gettime(Process::CLOCK_MONOTONIC, :nanosecond)
+ starting = Process.clock_gettime(Process::CLOCK_MONOTONIC, :microsecond)
51
client.send(:call_once, 'PING')
52
- duration = Process.clock_gettime(Process::CLOCK_MONOTONIC, :nanosecond) - starting
+ duration = Process.clock_gettime(Process::CLOCK_MONOTONIC, :microsecond) - starting
53
min = duration if duration < min
54
end
55
0 commit comments