mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-07-06 19:29:08 +00:00
Fix PCAP packet header timestamp
This commit is contained in:
parent
2e69d024a5
commit
10a73c9380
@ -46,7 +46,7 @@ public class PcapExporter {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
/* pcap packet header */
|
/* pcap packet header */
|
||||||
out.writeInt((int) System.currentTimeMillis() / 1000);
|
out.writeInt((int) (System.currentTimeMillis() / 1000));
|
||||||
out.writeInt((int) ((System.currentTimeMillis() % 1000) * 1000));
|
out.writeInt((int) ((System.currentTimeMillis() % 1000) * 1000));
|
||||||
out.writeInt(data.length);
|
out.writeInt(data.length);
|
||||||
out.writeInt(data.length);
|
out.writeInt(data.length);
|
||||||
|
Loading…
Reference in New Issue
Block a user