Updates:
Status: WontFix
Comment #2 on issue 129 by
kba...@in2void.com: Time stamp problem in dpkt
https://code.google.com/p/dpkt/issues/detail?id=129
I am assuming that you are doing something like this:
for ts, buf in pcap:
print ts
And then you observe the timestamp to be "1408173480.93" instead
of "1408173480.936543", as shown in wireshark. This is because the print
function in python limits float to two decimal places.
Example:
>>> x = 1258494066.119061
>>> x
1258494066.119061
>>> print x
1258494066.12
If you really need to print the full value, use format:
>>> "{0:.6f}".format(x)
'1258494066.119061'