From 9968c59baa85fa2ec1eacf1359200f6607539806 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Fri, 14 Aug 2015 16:45:15 +0200 Subject: [PATCH] dist/tools/sniffer: Fix usec calculation --- dist/tools/sniffer/sniffer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('