mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-09 07:39:21 +00:00
* Limit the number of simultanious http connections.
* Added max_open_http to the man page. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@840 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -51,7 +51,9 @@
|
||||
#include <torrent/peer/client_info.h>
|
||||
|
||||
#include "core/download.h"
|
||||
#include "core/manager.h"
|
||||
|
||||
#include "globals.h"
|
||||
#include "utils.h"
|
||||
|
||||
namespace display {
|
||||
@@ -279,11 +281,15 @@ print_status_info(char* first, char* last) {
|
||||
}
|
||||
|
||||
char*
|
||||
print_status_extra(char* first, char* last, __UNUSED Control* c) {
|
||||
print_status_extra(char* first, char* last) {
|
||||
first = print_buffer(first, last, " [U %i/%i]",
|
||||
torrent::currently_unchoked(),
|
||||
torrent::max_unchoked());
|
||||
|
||||
first = print_buffer(first, last, " [H %u/%u]",
|
||||
control->core()->get_poll_manager()->get_http_stack()->active(),
|
||||
control->core()->get_poll_manager()->get_http_stack()->max_active());
|
||||
|
||||
first = print_buffer(first, last, " [S %i/%i/%i]",
|
||||
torrent::total_handshakes(),
|
||||
torrent::connection_manager()->size(),
|
||||
|
||||
+1
-1
@@ -76,7 +76,7 @@ char* print_entry_tags(char* first, char* last);
|
||||
char* print_entry_file(char* first, char* last, const torrent::Entry& entry);
|
||||
|
||||
char* print_status_info(char* first, char* last);
|
||||
char* print_status_extra(char* first, char* last, Control* c);
|
||||
char* print_status_extra(char* first, char* last);
|
||||
|
||||
inline char*
|
||||
print_buffer(char* first, char* last, const char* format) {
|
||||
|
||||
@@ -95,7 +95,7 @@ WindowStatusbar::redraw() {
|
||||
last = last - (position - buffer);
|
||||
|
||||
if (last > buffer) {
|
||||
position = print_status_extra(buffer, last, control);
|
||||
position = print_status_extra(buffer, last);
|
||||
m_canvas->print(m_canvas->width() - (position - buffer), 0, "%s", buffer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user