Update monitor.py

This commit is contained in:
Waldek 2020-07-02 13:27:44 +02:00 committed by GitHub
parent dbbe2f370d
commit 08c1a9e880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -468,7 +468,7 @@ def build_stats():
if CONFIG:
table = 'd' + dtemplate.render(_table=CTABLE)
dashboard_server.broadcast(table)
if BRIDGES and BRIDGES_INC:
if BRIDGES and BRIDGES_INC and BTABLE['SETUP']['BRIDGES']:
table = 'b' + btemplate.render(_table=BTABLE)
dashboard_server.broadcast(table)
build_time = now
@ -587,7 +587,7 @@ def process_message(_bmessage):
logging.debug('got BRIDGE_SND opcode')
BRIDGES = load_dictionary(_bmessage)
BRIDGES_RX = strftime('%Y-%m-%d %H:%M:%S', localtime(time()))
if BRIDGES_INC:
if BRIDGES_INC and BTABLE['SETUP']['BRIDGES']:
BTABLE['BRIDGES'] = build_bridge_table(BRIDGES)
elif opcode == OPCODE['LINK_EVENT']: