mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 00:48:41 +00:00
fix eta from going backwards
This commit is contained in:
parent
92c9d28d0c
commit
2dfb02e062
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ PLUGIN_DIR = os.path.join(INSTALL_PREFIX, 'share', 'deluge', 'plugins')
|
||||||
|
|
||||||
def estimate_eta(state):
|
def estimate_eta(state):
|
||||||
try:
|
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"]))
|
state["download_rate"]))
|
||||||
except ZeroDivisionError:
|
except ZeroDivisionError:
|
||||||
return _("Infinity")
|
return _("Infinity")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue