Error ia kaReporting

This commit is contained in:
Simon 2021-05-02 01:44:16 +01:00
parent 014edd8893
commit 45e10a9472

View File

@ -359,10 +359,10 @@ def statTrimmer():
def kaReporting(): def kaReporting():
logger.debug('(ROUTER) KeepAlive reporting loop started') logger.debug('(ROUTER) KeepAlive reporting loop started')
#for system in systems: for system in systems:
if CONFIG['SYSTEMS'][system]['MODE'] == 'OPENBRIDGE': if CONFIG['SYSTEMS'][system]['MODE'] == 'OPENBRIDGE':
if '_bcka' in CONFIG['SYSTEMS'][system] and CONFIG['SYSTEMS'][system]['_bcka'] < time() - 60: if '_bcka' in CONFIG['SYSTEMS'][system] and CONFIG['SYSTEMS'][system]['_bcka'] < time() - 60:
logger.warning('(ROUTER) not sending to system %s as last keepalive was %s ago',system, config['SYSTEMS'][system]['_bcka'] - time()) logger.warning('(ROUTER) not sending to system %s as last keepalive was %s ago',system, config['SYSTEMS'][system]['_bcka'] - time())
# run this every 10 seconds to trim orphaned stream ids # run this every 10 seconds to trim orphaned stream ids
def stream_trimmer_loop(): def stream_trimmer_loop():