diff --git a/scripts/drop_burst_parse.py b/scripts/drop_burst_parse.py new file mode 100755 index 0000000..e69fad9 --- /dev/null +++ b/scripts/drop_burst_parse.py @@ -0,0 +1,15 @@ +#!/usr/bin/python3 + +import sys,re,math + +prev = 0 + +for line in sys.stdin: + res = re.match(r".*Packet (\d+) latency.*", line) + if not res: continue + pkt_id, = res.groups() + pkt_id = int(pkt_id) - 1 + dropped = pkt_id - (prev+1) + if dropped > 0: + print(f"{prev},{pkt_id},{dropped}") + prev = pkt_id