Fix PCAP packet header timestamp

This commit is contained in:
George Oikonomou 2014-01-22 17:32:08 +00:00
parent 2e69d024a5
commit 10a73c9380
1 changed files with 1 additions and 1 deletions

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