cftp zero division error for fast transfers or ungranular clocks

[email protected] Sat, 17 Oct 2009 03:39:42 -0000
Newsgroups gmane.comp.python.twisted.bugs
Message-ID <[email protected]>
New submission from exarkun <[email protected]>:

cftp's `_printProcessBar` method computes transfer rate by dividing bytes transferred by elapsed time.

However, the elapsed time may be zero if the file was small or the clock has poor resolution.  This results in an unhandled `ZeroDivisionError`.


----------
Type     : defect
Component: conch
Keywords : 
Priority : normal
Nosy     : 
----------
http://twistedmatrix.com/trac/ticket/4059