Fix PCAP packet header timestamp
This commit is contained in:
parent
2e69d024a5
commit
10a73c9380
1 changed files with 1 additions and 1 deletions
|
@ -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