mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-16 07:02:30 +00:00
* Added "max_{up,down}loads_{div,global}" options and man page entries.
* PCB::should_request() didn't check if m_downUnchoked was true, just m_downChoke.choked(). This would cause requests to be sent while we were still choked by remote. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@871 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -84,6 +84,12 @@ public:
|
||||
void adjust_down_throttle(int throttle);
|
||||
void adjust_up_throttle(int throttle);
|
||||
|
||||
unsigned int max_uploads_global() { return m_maxUploadsGlobal; }
|
||||
void set_max_uploads_global(int64_t slots);
|
||||
|
||||
unsigned int max_downloads_global() { return m_maxDownloadsGlobal; }
|
||||
void set_max_downloads_global(int64_t slots);
|
||||
|
||||
void enable_input(const std::string& title, input::TextInput* input);
|
||||
void disable_input();
|
||||
|
||||
@@ -101,6 +107,9 @@ private:
|
||||
WStatusbar* m_windowStatusbar;
|
||||
|
||||
input::Bindings m_bindings;
|
||||
|
||||
unsigned int m_maxUploadsGlobal;
|
||||
unsigned int m_maxDownloadsGlobal;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user