cleo icon indicating copy to clipboard operation
cleo copied to clipboard

Custom progress time displays 2 mins after 60 seconds

Open onema opened this issue 9 years ago • 1 comments

The elapsed time for a custom format will jump straight to 2 mins after it goes over 60 seconds.

Test

progress = self.progress_bar(60)
progress.set_format(' [%bar%] Elapsed: %elapsed%')
progress.start()
count = 0
while True:
    if count == 70:
        progress.finish()
        break
    count += 1
    progress.advance()
    time.sleep(1)

onema avatar May 12 '16 21:05 onema

Thanks for reporting this.

I will look into it.

sdispater avatar May 13 '16 14:05 sdispater

This should now work correctly, fixed in #122

Secrus avatar Sep 05 '22 14:09 Secrus