mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 19:29:18 +00:00
Merge pull request #533 from g-oikonomou/cooja-pcap-timestamp-fix
Fix Cooja PCAP packet header timestamps
This commit is contained in:
commit
602928d948
@ -46,7 +46,7 @@ public class PcapExporter {
|
||||
}
|
||||
try {
|
||||
/* pcap packet header */
|
||||
out.writeInt((int) System.currentTimeMillis() / 1000);
|
||||
out.writeInt((int) (System.currentTimeMillis() / 1000));
|
||||
out.writeInt((int) ((System.currentTimeMillis() % 1000) * 1000));
|
||||
out.writeInt(data.length);
|
||||
out.writeInt(data.length);
|
||||
|
Loading…
Reference in New Issue
Block a user