From 1b03c0eff4f5b8cf9f89937aa8022b3c99cd71f5 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 18 Aug 2008 00:36:19 +0000 Subject: [PATCH] Fix #407 possible negative ETA --- 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 323c094b9..a559a4d2f 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -298,7 +298,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: