Changeset 2036
- Timestamp:
- 10/23/07 03:32:58 (15 months ago)
- Files:
-
- 2 modified
-
tags/deluge-0.5.5.95/src/core.py (modified) (1 diff)
-
trunk/src/core.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tags/deluge-0.5.5.95/src/core.py
r2035 r2036 985 985 986 986 def calc_ratio(self, unique_ID, torrent_state): 987 up = float( self.unique_IDs[unique_ID].uploaded_memory/ 1024)987 up = float((self.unique_IDs[unique_ID].initial_uploaded_memory + self.get_core_torrent_state(unique_ID, False)['total_upload']) / 1024) 988 988 down = float(torrent_state["total_done"] / 1024) 989 989 try: -
trunk/src/core.py
r2035 r2036 985 985 986 986 def calc_ratio(self, unique_ID, torrent_state): 987 up = float( self.unique_IDs[unique_ID].uploaded_memory/ 1024)987 up = float((self.unique_IDs[unique_ID].initial_uploaded_memory + self.get_core_torrent_state(unique_ID, False)['total_upload']) / 1024) 988 988 down = float(torrent_state["total_done"] / 1024) 989 989 try:
