rate drop for HBP - 2

options
Simon 4 years ago
parent 0dea25c302
commit f9a50d67e0
No known key found for this signature in database
GPG Key ID: 6ACF11630B5D8F82

@ -2419,8 +2419,9 @@ class routerHBP(HBSYSTEM):
#Packet rate limit
#Rate drop
if self.STATUS[_slot]['packets'] > 18 and (self.STATUS[_slot]['packets'] / self.STATUS[slot]['RX_START'] > 25):
if self.STATUS[_slot]['packets'] > 18 and (self.STATUS[_slot]['packets'] / (pkt_time - self.STATUS[_slot]['RX_START'])):
logger.warning("(%s) *PacketControl* RATE DROP! Stream ID:, %s TGID: %s",self._system,int_id(_stream_id),int_id(_dst_id))
self.STATUS[_slot]['LAST'] = pkt_time
return
#Timeout

Loading…
Cancel
Save

Powered by TurnKey Linux.