Fix #407 possible negative ETA

This commit is contained in:
Andrew Resch 2008-08-18 00:36:19 +00:00
parent ed5e080b6d
commit dac94c5038
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@ Deluge 0.9.07 - "1.0.0_RC7" (18 August 2008)
* Fix loading torrents from state when fastresume file is missing
* Fix UPnP
* Fix to prevent Deluge from segfaulting when trying to autoadd an incomplete torrent file
* Fix #407 possible negative ETA
GtkUI:
* Add 'edit' to edit trackers dialog

View file

@ -279,7 +279,7 @@ class Torrent:
left = status.total_wanted - status.total_done
if left == 0 or status.download_payload_rate == 0:
if left <= 0 or status.download_payload_rate == 0:
return 0
try: