diff options
author | Marcos Pinto <markybob@dipconsultants.com> | 2007-10-23 03:32:58 +0000 |
---|---|---|
committer | Marcos Pinto <markybob@dipconsultants.com> | 2007-10-23 03:32:58 +0000 |
commit | 80f941a249eadf7817d64c4abd5106cd4a76e6d2 (patch) | |
tree | e032a793018b482af5d269b20c44f3b6b0b272a6 | |
parent | c04ae40cf1428a89995d8e8f699027101112b33a (diff) | |
download | deluge-80f941a249eadf7817d64c4abd5106cd4a76e6d2.tar.gz deluge-80f941a249eadf7817d64c4abd5106cd4a76e6d2.tar.bz2 deluge-80f941a249eadf7817d64c4abd5106cd4a76e6d2.zip |
tweak ratio fix
-rw-r--r-- | src/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py index c5acf1bdc..5f922fc17 100644 --- a/src/core.py +++ b/src/core.py @@ -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 |