Changeset 2036

Show
Ignore:
Timestamp:
10/23/07 03:32:58 (15 months ago)
Author:
markybob
Message:

tweak ratio fix

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • tags/deluge-0.5.5.95/src/core.py

    r2035 r2036  
    985985 
    986986    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) 
    988988        down = float(torrent_state["total_done"] / 1024) 
    989989        try: 
  • trunk/src/core.py

    r2035 r2036  
    985985 
    986986    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) 
    988988        down = float(torrent_state["total_done"] / 1024) 
    989989        try: