mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 18:08:39 +00:00
tweak last attribute except
This commit is contained in:
parent
0bec032638
commit
1bf007907c
1 changed files with 1 additions and 1 deletions
|
@ -987,7 +987,7 @@ class Manager:
|
||||||
try:
|
try:
|
||||||
up = float((self.unique_IDs[unique_ID].initial_uploaded_memory + self.get_core_torrent_state(unique_ID, False)['total_upload']) / 1024)
|
up = float((self.unique_IDs[unique_ID].initial_uploaded_memory + self.get_core_torrent_state(unique_ID, False)['total_upload']) / 1024)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
up = float(self.get_core_torrent_state(unique_ID, False)['total_upload'] / 1024)
|
up = float((self.unique_IDs[unique_ID].uploaded_memory + self.get_core_torrent_state(unique_ID, False)['total_upload']) / 1024)
|
||||||
down = float(torrent_state["total_done"] / 1024)
|
down = float(torrent_state["total_done"] / 1024)
|
||||||
try:
|
try:
|
||||||
ret = up/down
|
ret = up/down
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue