summary refs log tree commit homepage
path: root/lib/rainbows/coolio/heartbeat.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/coolio/heartbeat.rb')
-rw-r--r--lib/rainbows/coolio/heartbeat.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/coolio/heartbeat.rb b/lib/rainbows/coolio/heartbeat.rb
index 3ae9e16..fcfbb0f 100644
--- a/lib/rainbows/coolio/heartbeat.rb
+++ b/lib/rainbows/coolio/heartbeat.rb
@@ -13,7 +13,7 @@ class Rainbows::Coolio::Heartbeat < Coolio::TimerWatcher
 
   def on_timer
     if (ot = KEEPALIVE_TIMEOUT) >= 0
-      ot = Time.now - ot
+      ot = Rainbows.now - ot
       KATO.delete_if { |client, time| time < ot and client.timeout? }
     end
     exit if (! Rainbows.tick && CONN.size <= 0)