From 2e896b520eaea50034354805e0140817bd0dfb74 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Wed, 1 Jun 2011 00:39:31 +0100 Subject: [PATCH] Fix #1456 - No ETA showing with multiple files --- deluge/core/torrent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 3c0d4ce24..9c7726080 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -467,7 +467,7 @@ class Torrent(object): stop_ratio = self.options["stop_ratio"] 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: return 0