From 2dfb02e0624b5425f930b7697917e6e9e0d23e42 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Thu, 8 Nov 2007 03:17:26 +0000 Subject: [PATCH] fix eta from going backwards --- src/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.py b/src/common.py index 858d0a0c2..4be17a7bc 100644 --- a/src/common.py +++ b/src/common.py @@ -70,7 +70,7 @@ PLUGIN_DIR = os.path.join(INSTALL_PREFIX, 'share', 'deluge', 'plugins') def estimate_eta(state): try: - return ftime(get_eta(state["total_wanted"], state["total_done"], + return ftime(get_eta(state["total_wanted"], state["total_wanted_done"], state["download_rate"])) except ZeroDivisionError: return _("Infinity")