* 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
@@ -91,7 +91,7 @@ WindowPeerList::redraw() {
m_list->end(),
m_canvas->height() - y);
if (m_download->download()->chunks_total() <= 0)
if (m_download->download()->file_list()->size_chunks() <= 0)
throw std::logic_error("WindowPeerList::redraw() m_slotChunksTotal() returned invalid value");
while (range.first != range.second) {
@@ -151,7 +151,7 @@ WindowPeerList::redraw() {
int
WindowPeerList::done_percentage(torrent::Peer& p) {
int chunks = m_download->download()->chunks_total();
int chunks = m_download->download()->file_list()->size_chunks();
return chunks ? (100 * p.chunks_done()) / chunks : 0;
}