NiltonVolpato / python-progressbar

Text progress bar library for Python
Other
412 stars 105 forks source link

Add initial value to start method #46

Open SteveAyre opened 8 years ago

SteveAyre commented 8 years ago

When start is called it updates the value to zero. The calculations for ETA, speed etc then assume that the progress started from zero. If the bar starts when some progress has been made this can lead to some odd statistics, such as 200T/s transfer rates.

This could be avoided with an optional initial value to the start method, and then use that offset when calculating the rate of change.

Wistral commented 4 years ago

That was what I exactly want to solve... eg. File downloading interrupted and continue to download.