mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-09 03:32:29 +00:00
* Finished the move over to object_storage, removing command_function.*.
* Added redirects for several commands. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1166 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+4
-4
@@ -166,8 +166,8 @@ Root::set_down_throttle(unsigned int throttle) {
|
||||
|
||||
torrent::down_throttle_global()->set_max_rate(throttle * 1024);
|
||||
|
||||
unsigned int div = std::max<int>(rpc::call_command_value("max_downloads_div"), 0);
|
||||
unsigned int global = std::max<int>(rpc::call_command_value("max_downloads_global"), 0);
|
||||
unsigned int div = std::max<int>(rpc::call_command_value("throttle.max_downloads.div"), 0);
|
||||
unsigned int global = std::max<int>(rpc::call_command_value("throttle.max_downloads.global"), 0);
|
||||
|
||||
if (throttle == 0 || div == 0) {
|
||||
torrent::set_max_download_unchoked(global);
|
||||
@@ -196,8 +196,8 @@ Root::set_up_throttle(unsigned int throttle) {
|
||||
|
||||
torrent::up_throttle_global()->set_max_rate(throttle * 1024);
|
||||
|
||||
unsigned int div = std::max<int>(rpc::call_command_value("max_uploads_div"), 0);
|
||||
unsigned int global = std::max<int>(rpc::call_command_value("max_uploads_global"), 0);
|
||||
unsigned int div = std::max<int>(rpc::call_command_value("throttle.max_uploads.div"), 0);
|
||||
unsigned int global = std::max<int>(rpc::call_command_value("throttle.max_uploads.global"), 0);
|
||||
|
||||
if (throttle == 0 || div == 0) {
|
||||
torrent::set_max_unchoked(global);
|
||||
|
||||
Reference in New Issue
Block a user