slight improvement of remaining time estimate...

This commit is contained in:
Philip Eisenlohr 2010-11-02 16:55:56 +00:00
parent 796bffee2e
commit be265aef37
1 changed files with 1 additions and 1 deletions

View File

@ -569,7 +569,7 @@ time_start = time.time()
for incCount,increment in enumerate(increments):
p.moveto(increment+1)
time_delta = (len(increments)-incCount)*(time.time()-time_start)/(incCount+1)
time_delta = (len(increments)-incCount)*(time.time()-time_start)/max(1.0,incCount)
bg.set_message('(%02i:%02i:%02i) read data from increment %i...'%(time_delta//3600,time_delta%3600//60,time_delta%60,increment))
data = {}