summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcos Pinto <markybob@dipconsultants.com>2007-10-23 03:32:58 +0000
committerMarcos Pinto <markybob@dipconsultants.com>2007-10-23 03:32:58 +0000
commit80f941a249eadf7817d64c4abd5106cd4a76e6d2 (patch)
treee032a793018b482af5d269b20c44f3b6b0b272a6
parentc04ae40cf1428a89995d8e8f699027101112b33a (diff)
downloaddeluge-80f941a249eadf7817d64c4abd5106cd4a76e6d2.tar.gz
deluge-80f941a249eadf7817d64c4abd5106cd4a76e6d2.tar.bz2
deluge-80f941a249eadf7817d64c4abd5106cd4a76e6d2.zip
tweak ratio fix
-rw-r--r--src/core.py2
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