Packet rate reporting for loop too

rate
Simon 4 years ago
parent 3b68e153c9
commit 605161d93b

@ -1678,7 +1678,7 @@ class routerOBP(OPENBRIDGE):
call_duration = pkt_time - self.STATUS[_stream_id]['START']
packet_rate = 0
packet_rate = self.STATUS[_stream_id]['packets'] / call_duration
logger.warning("(%s) OBP *LoopControl* FIRST OBP %s, STREAM ID: %s, TG %s, IGNORE THIS SOURCE. PACKET RATE %0.2f",self._system, fi, int_id(_stream_id), int_id(_dst_id),call_duration)
logger.warning("(%s) OBP *LoopControl* FIRST OBP %s, STREAM ID: %s, TG %s, IGNORE THIS SOURCE. PACKET RATE %0.2f/s",self._system, fi, int_id(_stream_id), int_id(_dst_id),call_duration)
self.STATUS[_stream_id]['LOOPLOG'] = True
self.STATUS[_stream_id]['LAST'] = pkt_time

Loading…
Cancel
Save

Powered by TurnKey Linux.