liuweireign / dpkt

Automatically exported from code.google.com/p/dpkt
Other
0 stars 0 forks source link

Bug in writepkt of pcap module #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
replace in line 81 

tv_usec=int((int(ts) - float(ts)) * 1000000.0)

with

tv_usec=int((float(ts) - int(ts)) * 1000000.0)

tnx
Manuel.

Original issue reported on code.google.com by manuel.c...@gmail.com on 20 Mar 2007 at 9:21

GoogleCodeExporter commented 9 years ago
this is already fixed in the current version of dpkt in Subversion. i will cut 
a new
release soon that incorporates it.

thank you for the bug report!

Original comment by dugsong on 20 Mar 2007 at 9:32