summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcos Pinto <markybob@dipconsultants.com>2007-10-23 07:35:23 +0000
committerMarcos Pinto <markybob@dipconsultants.com>2007-10-23 07:35:23 +0000
commit1bf007907c3e02336d140abba615fbd5e0d198cd (patch)
treec9807dae098de1dedf01c8b1a3d0751cc53141e9
parent0bec0326380c472ccefffcf29fcd8d2fd3ecfb11 (diff)
downloaddeluge-1bf007907c3e02336d140abba615fbd5e0d198cd.tar.gz
deluge-1bf007907c3e02336d140abba615fbd5e0d198cd.tar.bz2
deluge-1bf007907c3e02336d140abba615fbd5e0d198cd.zip
tweak last attribute except
-rw-r--r--src/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py
index b79c03f39..e293174f3 100644
--- a/src/core.py
+++ b/src/core.py
@@ -987,7 +987,7 @@ class Manager:
try:
up = float((self.unique_IDs[unique_ID].initial_uploaded_memory + self.get_core_torrent_state(unique_ID, False)['total_upload']) / 1024)
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)
try:
ret = up/down