mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
tweak ratio fix
This commit is contained in:
parent
c04ae40cf1
commit
80f941a249
1 changed files with 1 additions and 1 deletions
|
@ -984,7 +984,7 @@ class Manager:
|
|||
# Calculations
|
||||
|
||||
def calc_ratio(self, unique_ID, torrent_state):
|
||||
up = float(self.unique_IDs[unique_ID].uploaded_memory / 1024)
|
||||
up = float((self.unique_IDs[unique_ID].initial_uploaded_memory + self.get_core_torrent_state(unique_ID, False)['total_upload']) / 1024)
|
||||
down = float(torrent_state["total_done"] / 1024)
|
||||
try:
|
||||
ret = up/down
|
||||
|
|
Loading…
Add table
Reference in a new issue