rsalmei / alive-progress

A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accept calling bar(0) and even bar(-X)

luewh opened this issue · comments

I have to check the progress each periode of time then update the bar with pregression difference, but this value could be 0, so it updated 1 while it doesn't need.
I can add a condition to check if it is 0 but it would be logical to not increment when call bar(0).

Yes, it makes sense. Also, it would be on par with the manual mode bar, which does accept 0. (float) as input.
I'll do it on the next release.