Status-informations every 5 seconds added (flush cache, not db)
parent
0de5632516
commit
a314bd8d9a
|
@ -79,7 +79,7 @@ module LogAn::Inc
|
||||||
status = lambda do
|
status = lambda do
|
||||||
@select.at Time.now+5, &status
|
@select.at Time.now+5, &status
|
||||||
$stderr.puts "#{Time.now.strftime"%H:%M:%S"}|INFO|Statistic|#{@select.inspect}"
|
$stderr.puts "#{Time.now.strftime"%H:%M:%S"}|INFO|Statistic|#{@select.inspect}"
|
||||||
@conf[:stores].each{|key, db| db.source.source.flush!}
|
@conf[:stores].each{|key, db| db.flush!}
|
||||||
end
|
end
|
||||||
status.call
|
status.call
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue