use total_wanted instead of total_size in checking free space

This commit is contained in:
Marcos Pinto 2007-10-14 04:46:11 +00:00
parent 20ffbf122e
commit e4f5d822de
2 changed files with 2 additions and 6 deletions

6
TODO
View File

@ -1,6 +1,2 @@
for 0.5.6
1. check on file size warnings "you do not have enough disk space blah blah"
and see how it works with the new sparse mode. use total_wanted.
2. for the love of all that is pure and holy, figure out why speed limiter
doesnt work anymore
3. make scheduled plugin work without having to open up its preferences first
1. make scheduled plugin work without having to open up its preferences first

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_size"] - torrent_state["total_done"]
total_needed = torrent_state["total_wanted"] - torrent_state["total_done"]
if total_needed < avail:
# We have enough free space, so lets resume this torrent
self.resume(unique_ID)