* Removed Content and moved stuff to DownloadWrapper and FileList.

* Using a char buffer instead of std::string in
Handshake::prepare_key_plus_pad().


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@813 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-12-02 09:16:36 +00:00
parent c992fa60df
commit e4db1cacc2
10 changed files with 20 additions and 19 deletions
+2 -2
View File
@@ -227,7 +227,7 @@ Download::priority_to_string(uint32_t p) {
float
Download::distributed_copies() const {
const uint8_t* avail = m_download.chunks_seen();
const uint8_t* end = avail + m_download.chunks_total();
const uint8_t* end = avail + m_download.file_list()->size_chunks();
if (avail == NULL)
return 0;
@@ -243,7 +243,7 @@ Download::distributed_copies() const {
num = 1;
}
return minAvail + 1 - (float)num / m_download.chunks_total();
return minAvail + 1 - (float)num / m_download.file_list()->size_chunks();
}
void