tweak another total_done to total_wanted_done

This commit is contained in:
Marcos Pinto 2007-10-14 19:47:56 +00:00
parent dbe83d4ede
commit 71a5c79c15

View File

@ -542,7 +542,7 @@ class Manager:
if self.unique_IDs[unique_ID].compact == False:
avail = self.calc_free_space(directory = self.unique_IDs\
[unique_ID].save_dir)
total_needed = torrent_state["total_wanted"] - torrent_state["total_done"]
total_needed = torrent_state["total_wanted"] - torrent_state["total_wanted_done"]
if total_needed < avail:
# We have enough free space, so lets resume this torrent
self.resume(unique_ID)