diff --git a/dist/tools/sniffer/sniffer.py b/dist/tools/sniffer/sniffer.py index 797cff6187..2f3dacde27 100755 --- a/dist/tools/sniffer/sniffer.py +++ b/dist/tools/sniffer/sniffer.py @@ -86,7 +86,7 @@ def generate_pcap(port, out): if pkt_header: now = time() sec = int(now) - usec = (int(now) - sec) * 100000 + usec = int((now - sec) * 1000000) length = int(pkt_header.group(1), 16) out.write(pack('