Commit 3dfb48ba by Eric Coissac

Patch a bug in the progress bar

parent 41854044
......@@ -52,8 +52,11 @@ cpdef object progressBar(object pos,
if cycle % freq == 0:
cycle=1
newtime = clock()
d = newtime-delta[1]
if newtime > delta[1]:
d = newtime-delta[1]
else:
d=0
if d < 0.02 * CLOCKS_PER_SEC :
freq*=2
elif d > 0.4 * CLOCKS_PER_SEC and freq>1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment