mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-07 14:49:21 +00:00
* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user