fix eta from going backwards

This commit is contained in:
Marcos Pinto 2007-11-08 03:17:26 +00:00
parent 92c9d28d0c
commit 2dfb02e062
1 changed files with 1 additions and 1 deletions

View File

@ -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")