Need to convert bytes to int when comparing timestamp for out-of-time packets

master
Simon 5 years ago
parent c5926c6e40
commit 1fd31a0716

@ -386,7 +386,7 @@ class OPENBRIDGE(DatagramProtocol):
return
#Discard old packets
if (_timestamp/1000000000) < (time() - 30):
if (int.from_bytes(_timestamp,'big')/1000000000) < (time() - 30):
logger.warning('(%s) Packet more than 30s old!, discarding', self._system)
return

Loading…
Cancel
Save

Powered by TurnKey Linux.