mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
fix #420 - total size to total wanted along with eta update - micah
This commit is contained in:
parent
4964f11943
commit
375d73431c
1 changed files with 2 additions and 2 deletions
|
@ -790,7 +790,7 @@ class DelugeGTK:
|
|||
|
||||
queue = int(state['queue_pos']) + 1
|
||||
name = state['name']
|
||||
size = long(state['total_size'])
|
||||
size = long(state['total_wanted'])
|
||||
progress = float(state['progress'] * 100)
|
||||
message = self.get_message_from_state(state)
|
||||
seeds = int(state['num_seeds'])
|
||||
|
@ -800,7 +800,7 @@ class DelugeGTK:
|
|||
dl_speed = int(state['download_rate'])
|
||||
ul_speed = int(state['upload_rate'])
|
||||
try:
|
||||
eta = common.get_eta(state["total_size"], state["total_done"], state["download_rate"])
|
||||
eta = common.get_eta(state["total_wanted"], state["total_wanted_done"], state["download_rate"])
|
||||
except ZeroDivisionError:
|
||||
eta = 0
|
||||
share = float(self.calc_share_ratio(unique_id, state))
|
||||
|
|
Loading…
Add table
Reference in a new issue