Merge pull request #533 from g-oikonomou/cooja-pcap-timestamp-fix

Fix Cooja PCAP packet header timestamps
This commit is contained in:
Fredrik Österlind 2014-02-21 13:41:15 +01:00
commit 602928d948

View file

@ -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);