From 71a5c79c15b3fbd825ffd6ebe89afae0bb0e6aee Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Sun, 14 Oct 2007 19:47:56 +0000 Subject: [PATCH] tweak another total_done to total_wanted_done --- src/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.py b/src/core.py index ed55ffbb4..591bf46fb 100644 --- a/src/core.py +++ b/src/core.py @@ -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)