mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 22:22:31 +00:00
* Send uninterested to peer when no download slots are available, and
various other stuff to make it work properly. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@870 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -108,9 +108,19 @@ WindowPeerList::redraw() {
|
||||
m_canvas->print(x, y, "%.1f", (double)p.down_rate()->rate() / 1024); x += 7;
|
||||
m_canvas->print(x, y, "%.1f", (double)p.peer_rate()->rate() / 1024); x += 7;
|
||||
|
||||
char remoteChoked;
|
||||
|
||||
if (!p.is_remote_choked_limited())
|
||||
remoteChoked = 'U';
|
||||
else if (p.is_remote_queued())
|
||||
remoteChoked = 'Q';
|
||||
else
|
||||
remoteChoked = 'C';
|
||||
|
||||
m_canvas->print(x, y, "%c/%c%c/%c%c",
|
||||
p.is_encrypted() ? (p.is_incoming() ? 'R' : 'L') : (p.is_incoming() ? 'r' : 'l'),
|
||||
p.is_remote_queued() ? (p.is_remote_choked() ? 'C' : 'u') : (p.is_remote_choked() ? 'c' : 'U'),
|
||||
p.is_remote_choked() ? std::tolower(remoteChoked) : remoteChoked,
|
||||
|
||||
p.is_remote_interested() ? 'i' : 'n',
|
||||
p.is_local_choked() ? 'c' : 'u',
|
||||
p.is_local_interested() ? 'i' : 'n');
|
||||
|
||||
Reference in New Issue
Block a user