Fix uploaded_memory from reverting to state value when doing a forced

recheck.
This commit is contained in:
Andrew Resch 2008-05-20 02:03:11 +00:00
parent 66212563e7
commit 817076ff65
1 changed files with 1 additions and 0 deletions

View File

@ -776,6 +776,7 @@ window, please enter your password"))
trackers_changed = 0 trackers_changed = 0
self.manager.pickle_state() self.manager.pickle_state()
uploaded_memory = self.manager.unique_IDs[uid].uploaded_memory uploaded_memory = self.manager.unique_IDs[uid].uploaded_memory
uploaded_memory += self.manager.get_core_torrent_state(uid, False)['total_payload_upload']
priorities = self.manager.get_priorities(uid) priorities = self.manager.get_priorities(uid)
save_info = [path, save_dir, order, trackerslist, \ save_info = [path, save_dir, order, trackerslist, \
uploaded_memory, priorities, trackers_changed, \ uploaded_memory, priorities, trackers_changed, \