From 0f546e9636ba340f09c3c950fe5ca6dd61e4f411 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 2 May 2021 21:04:25 +0100 Subject: [PATCH] Make KA report correct time --- bridge_master.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridge_master.py b/bridge_master.py index ca6960d..0438742 100755 --- a/bridge_master.py +++ b/bridge_master.py @@ -362,9 +362,9 @@ def kaReporting(): for system in systems: if CONFIG['SYSTEMS'][system]['MODE'] == 'OPENBRIDGE': 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 seconds ago',system, int(time() - CONFIG['SYSTEMS'][system]['_bcka'])) -# run this every 10 seconds to trim orphaned stream ids +# run this every 10 seconds to trim stream ids def stream_trimmer_loop(): logger.debug('(ROUTER) Trimming inactive stream IDs from system lists') _now = time()