mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 14:12:31 +00:00
* Moved Listen to ConnectionManager and use a single port rather than
cache it in each download. * Set classic locale on various streams. * Added ChunkStatistic class that will keep track of the number of each chunk, and how many seeders there are. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@654 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -213,7 +213,7 @@ print_status_info(char* first, char* last) {
|
||||
(double)torrent::up_rate()->rate() / 1024.0,
|
||||
(double)torrent::down_rate()->rate() / 1024.0);
|
||||
|
||||
first = print_buffer(first, last, " [Port: %i]", (unsigned int)torrent::listen_port());
|
||||
first = print_buffer(first, last, " [Port: %i]", (unsigned int)torrent::connection_manager()->listen_port());
|
||||
|
||||
if (!rak::socket_address::cast_from(torrent::connection_manager()->local_address())->is_address_any()) {
|
||||
first = print_buffer(first, last, " [Local ");
|
||||
|
||||
@@ -65,7 +65,7 @@ WindowDownloadStatusbar::redraw() {
|
||||
position = print_download_info(buffer, last, m_download);
|
||||
m_canvas->print(0, 0, "%s", buffer);
|
||||
|
||||
position = buffer + std::max(snprintf(buffer, last - buffer, "Peers: %i(%i) Min/Max: %i/%i Uploads: %i U/I: %i/%i Failed: %i",
|
||||
position = buffer + std::max(snprintf(buffer, last - buffer, "Peers: %i(%i) Min/Max: %i/%i Uploads: %i U/I/C: %i/%i/%i Failed: %i",
|
||||
(int)m_download->get_download().peers_connected(),
|
||||
(int)m_download->get_download().peers_not_connected(),
|
||||
(int)m_download->get_download().peers_min(),
|
||||
@@ -73,6 +73,7 @@ WindowDownloadStatusbar::redraw() {
|
||||
(int)m_download->get_download().uploads_max(),
|
||||
(int)m_download->get_download().peers_currently_unchoked(),
|
||||
(int)m_download->get_download().peers_currently_interested(),
|
||||
(int)m_download->get_download().peers_complete(),
|
||||
(int)m_download->chunks_failed()),
|
||||
0);
|
||||
// position = buffer + std::max(snprintf(position, last - buffer, " Priority: %s",
|
||||
|
||||
Reference in New Issue
Block a user