flagos / python-progressbar

Automatically exported from code.google.com/p/python-progressbar
Other
0 stars 0 forks source link

update value one step ahead #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Consider the following piece of code:

from progressbar import *
import time
pbar = ProgressBar(widgets=[Percentage(), Bar(), ETA()])
for i in pbar(range(3)):
    time.sleep(2)

What is the expected output? What do you see instead?
I would expect to start at 0%, then display 33% after t=2s, 66% at t=4s and 
finally 100% at t=6, which is also the end of the program.
Instead, it starts at 33%, displays 66% at t=2s, 100% at t=4s and returns at 
t=6s....

What version of the product are you using? On what operating system?
Using v2.3 on linux with python 2.6

Please provide any additional information below.

Original issue reported on code.google.com by brice.re...@gmail.com on 23 Nov 2010 at 8:20

GoogleCodeExporter commented 9 years ago
Thanks for the report!

Can you please verify it's fixed after:
http://code.google.com/p/python-progressbar/source/detail?r=50d9fbbf3723a4a2a3d1
74736f518115d3061f5f

Original comment by nilton.v...@gmail.com on 24 Nov 2010 at 6:05

GoogleCodeExporter commented 9 years ago
Thanks for the quick fix!

Original comment by brice.re...@gmail.com on 25 Nov 2010 at 2:54