mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-15 22:14:24 +00:00
fix #420 - total size to total wanted along with eta update - micah
This commit is contained in:
parent
4964f11943
commit
375d73431c
@ -790,7 +790,7 @@ class DelugeGTK:
|
|||||||
|
|
||||||
queue = int(state['queue_pos']) + 1
|
queue = int(state['queue_pos']) + 1
|
||||||
name = state['name']
|
name = state['name']
|
||||||
size = long(state['total_size'])
|
size = long(state['total_wanted'])
|
||||||
progress = float(state['progress'] * 100)
|
progress = float(state['progress'] * 100)
|
||||||
message = self.get_message_from_state(state)
|
message = self.get_message_from_state(state)
|
||||||
seeds = int(state['num_seeds'])
|
seeds = int(state['num_seeds'])
|
||||||
@ -800,7 +800,7 @@ class DelugeGTK:
|
|||||||
dl_speed = int(state['download_rate'])
|
dl_speed = int(state['download_rate'])
|
||||||
ul_speed = int(state['upload_rate'])
|
ul_speed = int(state['upload_rate'])
|
||||||
try:
|
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:
|
except ZeroDivisionError:
|
||||||
eta = 0
|
eta = 0
|
||||||
share = float(self.calc_share_ratio(unique_id, state))
|
share = float(self.calc_share_ratio(unique_id, state))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user