* Set Content::m_chunkSize before adding files.

* Removed the old FileList and replaced it with the cleaned up
EntryList code. The API now gives a FileList* instead of FileList.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@810 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-11-22 12:57:38 +00:00
parent e3f59ee9e4
commit 281f924556
8 changed files with 49 additions and 38 deletions
+2 -1
View File
@@ -50,6 +50,7 @@
#include <torrent/connection_manager.h>
#include <torrent/exceptions.h>
#include <torrent/file.h>
#include <torrent/file_list.h>
#include <torrent/path.h>
#include <torrent/rate.h>
#include <torrent/torrent.h>
@@ -175,7 +176,7 @@ apply_close_low_diskspace(Control* m, int64_t arg) {
core::Manager::DListItr itr = m->core()->download_list()->begin();
while ((itr = std::find_if(itr, m->core()->download_list()->end(), std::mem_fun(&core::Download::is_downloading))) != m->core()->download_list()->end()) {
if ((*itr)->download()->free_diskspace() < (uint64_t)arg) {
if ((*itr)->file_list()->free_diskspace() < (uint64_t)arg) {
m->core()->download_list()->close(*itr);
(*itr)->set_hash_failed(true);