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 a new issue