* Made PCB inherit from Peer.

* Added man page entry for ^E.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1032 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2008-01-27 14:01:10 +00:00
parent 728c6ac9bd
commit 259cb77799
3 changed files with 20 additions and 11 deletions
+7 -7
View File
@@ -110,20 +110,20 @@ WindowPeerList::redraw() {
char remoteChoked;
if (!p->is_remote_choked_limited())
if (!p->is_down_choked_limited())
remoteChoked = 'U';
else if (p->is_remote_queued())
else if (p->is_down_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_choked() ? std::tolower(remoteChoked) : remoteChoked,
p->is_down_choked() ? std::tolower(remoteChoked) : remoteChoked,
p->is_remote_interested() ? 'i' : 'n',
p->is_local_choked() ? 'c' : 'u',
p->is_local_interested() ? 'i' : 'n');
p->is_down_interested() ? 'i' : 'n',
p->is_up_choked() ? 'c' : 'u',
p->is_up_interested() ? 'i' : 'n');
x += 9;
m_canvas->print(x, y, "%i/%i", p->outgoing_queue_size(), p->incoming_queue_size());
@@ -150,7 +150,7 @@ WindowPeerList::redraw() {
x += 7;
char buf[128];
print_client_version(buf, buf + 128, p->info()->client_info());
print_client_version(buf, buf + 128, p->peer_info()->client_info());
m_canvas->print(x, y, "%s", buf);