storage fastresume fix

This commit is contained in:
Arvid Norberg 2008-06-23 18:31:52 +00:00
parent 964e8b93d0
commit 9447693202
2 changed files with 3 additions and 3 deletions

View File

@ -1445,6 +1445,9 @@ namespace libtorrent
slots.push_back((*i >= 0) ? *i : unassigned); slots.push_back((*i >= 0) ? *i : unassigned);
} }
} }
rd["allocation"] = m_storage_mode == storage_mode_sparse?"sparse"
:m_storage_mode == storage_mode_allocate?"full":"compact";
} }
void piece_manager::mark_failed(int piece_index) void piece_manager::mark_failed(int piece_index)

View File

@ -2461,9 +2461,6 @@ namespace libtorrent
ret["num_seeds"] = seeds; ret["num_seeds"] = seeds;
ret["num_downloaders"] = downloaders; ret["num_downloaders"] = downloaders;
ret["allocation"] = m_storage_mode == storage_mode_sparse?"sparse"
:m_storage_mode == storage_mode_allocate?"full":"compact";
const sha1_hash& info_hash = torrent_file().info_hash(); const sha1_hash& info_hash = torrent_file().info_hash();
ret["info-hash"] = std::string((char*)info_hash.begin(), (char*)info_hash.end()); ret["info-hash"] = std::string((char*)info_hash.begin(), (char*)info_hash.end());