Closed eclazi closed 8 years ago
Just found the same problem.
According to the pcap documentation [1] the time is split in seconds and microseconds.
This means timestamp_ms
should be renamed to timestamp_us
. Since this would be a breaking
change it might be useful to add a property timestamp_ms
that returns the time in milliseconds.
I am unsure on what to do with the constructor, but I do not expected that to be used outside of this package, so a change in parameter naming shouldn't have a large impact.
[1] https://wiki.wireshark.org/Development/LibpcapFileFormat
timestamp_ms
member ofpcap_packet
is confusing. I think is should be renamedtimestamp_us
as it is in microseconds.