Fixed display gitchyness
This commit is contained in:
parent
4218eb3c55
commit
d37333c569
@ -203,8 +203,8 @@ def ftpDownload(ftp, file, stream):
|
|||||||
time_left = (size-total)/(total/(time.time()-start))
|
time_left = (size-total)/(total/(time.time()-start))
|
||||||
ETA.set("ETA: " + str(datetime.timedelta(seconds=math.ceil(time_left))))
|
ETA.set("ETA: " + str(datetime.timedelta(seconds=math.ceil(time_left))))
|
||||||
pbar.set(total/size)
|
pbar.set(total/size)
|
||||||
dialog.update()
|
|
||||||
timer = time.time()
|
timer = time.time()
|
||||||
|
dialog.update()
|
||||||
ftp.retrbinary("RETR " + file, downloadCallback)
|
ftp.retrbinary("RETR " + file, downloadCallback)
|
||||||
dialog.quit()
|
dialog.quit()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user