From 7a1a4cac6a7628e0304568118ee295af94adfb5e Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 11 Apr 2022 00:49:30 +0100 Subject: [PATCH] Loss --- bridge_master.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge_master.py b/bridge_master.py index 4e67887..7a29efe 100644 --- a/bridge_master.py +++ b/bridge_master.py @@ -482,7 +482,7 @@ def stream_trimmer_loop(): system, int_id(stream_id), get_alias(int_id(_stream['RFS']), subscriber_ids), get_alias(int_id(_stream['RX_PEER']), peer_ids), get_alias(int_id(_stream['TGID']), talkgroup_ids)) else: logger.info('(%s) *TIME OUT* STREAM ID: %s SUB: %s PEER: %s TGID: %s TS 1 Duration: %.2f, LOSS: %.2f%%', \ - system, int_id(stream_id), get_alias(int_id(_stream['RFS']), subscriber_ids), get_alias(int_id(_stream['RX_PEER']), peer_ids), get_alias(int_id(_stream['TGID']), talkgroup_ids), _stream['LAST'] - _stream['START'],(( systems[system].STATUS[stream_id]['loss'] / ((systems[system].STATUS[stream_id]['packets']) * 100) * systems[system].STATUS[stream_id]['loss']))) + system, int_id(stream_id), get_alias(int_id(_stream['RFS']), subscriber_ids), get_alias(int_id(_stream['RX_PEER']), peer_ids), get_alias(int_id(_stream['TGID']), talkgroup_ids), _stream['LAST'] - _stream['START'],((systems[system].STATUS[stream_id]['loss'] / systems[system].STATUS[stream_id]['packets']) * 100)) if CONFIG['REPORTS']['REPORT']: systems[system]._report.send_bridgeEvent('GROUP VOICE,END,RX,{},{},{},{},{},{},{:.2f}'.format(system, int_id(stream_id), int_id(_stream['RX_PEER']), int_id(_stream['RFS']), 1, int_id(_stream['TGID']), _stream['LAST'] - _stream['START']).encode(encoding='utf-8', errors='ignore'))