From 338daed210f874bf1820a8287ac7b5b2c590883a Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Sat, 3 Apr 2010 13:04:47 +0200 Subject: [PATCH] status: fixed --- lib/logan/inc/main.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/logan/inc/main.rb b/lib/logan/inc/main.rb index 6a92b84..0722934 100644 --- a/lib/logan/inc/main.rb +++ b/lib/logan/inc/main.rb @@ -90,6 +90,7 @@ module LogAn::Inc # Select-framework @select = LogAn::Inc::Select.new + @status = method :status status # Init Status # Prepare Inc-server - create server @@ -107,10 +108,10 @@ module LogAn::Inc end def status + @select.at Time.now+5, &@status LogAn::Logging.info :recv_lines => @logs.counter, :connections => @serv && @serv.clients.map {|cl| cl.sock.peeraddr } @conf[ :stores].each {|key, db| db.flush!} - @select.at Time.now+5, &status end # Will be called at exit. Will close all opened BDB::Env