Status: smarter...

This commit is contained in:
Denis Knauf 2010-04-01 15:57:18 +02:00
parent 10f9550059
commit f562f25d82

View file

@ -90,7 +90,7 @@ module LogAn::Inc
@select = LogAn::Inc::Select.new
status = lambda do
@select.at Time.now+5, &status
LogAn::Logging.info :recv_lines => @logs.counter, :connections => @serv && @serv.clients
LogAn::Logging.info :recv_lines => @logs.counter, :connections => @serv && @serv.clients.map{|cl|cl.sock.peeraddr}
@conf[:stores].each{|key, db| db.flush!}
end
status.call