fixed piece picker problem when a downloading piece could not be picked with the right speed category

This commit is contained in:
Arvid Norberg
2007-09-10 08:07:18 +00:00
parent 0db64cba2c
commit 80aee32972
6 changed files with 30 additions and 9 deletions

View File

@@ -303,7 +303,7 @@ int peer_index(libtorrent::tcp::endpoint addr, std::vector<libtorrent::peer_info
void print_peer_info(std::ostream& out, std::vector<libtorrent::peer_info> const& peers)
{
using namespace libtorrent;
out << " down (total) up (total) que req flags source fail hshf sndb inactive wait disk block-progress "
out << " down (total) up (total) sent-req recv flags source fail hshf sndb inactive wait disk block-progress "
#ifndef TORRENT_DISABLE_RESOLVE_COUNTRIES
"country "
#endif
@@ -321,7 +321,8 @@ void print_peer_info(std::ostream& out, std::vector<libtorrent::peer_info> const
<< "(" << add_suffix(i->total_download) << ") " << esc("0")
<< esc("31") << (i->up_speed > 0 ? add_suffix(i->up_speed) + "/s ": " ")
<< "(" << add_suffix(i->total_upload) << ") " << esc("0")
<< to_string(i->download_queue_length, 3) << " "
<< to_string(i->download_queue_length, 3) << " ("
<< to_string(i->target_dl_queue_length, 3) << ") "
<< to_string(i->upload_queue_length, 3) << " "
<< ((i->flags & peer_info::interesting)?'I':'.')
<< ((i->flags & peer_info::choked)?'C':'.')