Fix #1456 - No ETA showing with multiple files

This commit is contained in:
Calum Lind 2011-06-01 00:39:31 +01:00
parent 2005691312
commit 8a3bad9fc2
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ class Torrent(object):
stop_ratio = self.options["stop_ratio"] stop_ratio = self.options["stop_ratio"]
return ((status.all_time_download * stop_ratio) - status.all_time_upload) / status.upload_payload_rate return ((status.all_time_download * stop_ratio) - status.all_time_upload) / status.upload_payload_rate
left = status.total_wanted - status.total_done left = status.total_wanted - status.total_wanted_done
if left <= 0 or status.download_payload_rate == 0: if left <= 0 or status.download_payload_rate == 0:
return 0 return 0