vbauerster / mpb

multi progress bar for Go cli applications
The Unlicense
2.29k stars 123 forks source link

Add a non zero init value for bars #47

Closed Liupold closed 5 years ago

Liupold commented 5 years ago

A non zero init value will be really helpful, As it would make the average speed and eta more accurate for resume able task. Hope I can convey my thoughts clearly.

vbauerster commented 5 years ago

Hi! I know what you mean, because I faced the same issue in my getparty project, but was a bit lazy to undertake something without a good push. So thank you for your observation, I'll make sure to fix this.

vbauerster commented 5 years ago

It's possible now to pass user defined start time with following constructor functions:

Or update all average decorators afterwards with:

Example usage is here.

Liupold commented 5 years ago

Thanks a lot, for this quick response.