diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-01-05 16:29:53 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-06 07:16:40 +0000 |
commit | ed7669ced3aba5c0ba6f5fbee9411546b32c96df (patch) | |
tree | 806cab7dc260040733957453deead208a95c37c2 /lib/rainbows/coolio | |
parent | 4060b7742d047c0000fd1bf4ac2c3b9cae95585a (diff) | |
download | rainbows-ed7669ced3aba5c0ba6f5fbee9411546b32c96df.tar.gz |
Easier just to use an instance variable
Diffstat (limited to 'lib/rainbows/coolio')
-rw-r--r-- | lib/rainbows/coolio/heartbeat.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/coolio/heartbeat.rb b/lib/rainbows/coolio/heartbeat.rb index d1f4747..4506b84 100644 --- a/lib/rainbows/coolio/heartbeat.rb +++ b/lib/rainbows/coolio/heartbeat.rb @@ -11,7 +11,7 @@ class Rainbows::Coolio::Heartbeat < Coolio::TimerWatcher G = Rainbows::G def on_timer - if (ot = G.kato) >= 0 + if (ot = Rainbows.keepalive_timeout) >= 0 ot = Time.now - ot KATO.delete_if { |client, time| time < ot and client.timeout? } end |