* More work on the new throttle code.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@589 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-10-29 22:54:08 +00:00
parent 5137aade10
commit ce411252ac
4 changed files with 1 additions and 15 deletions
-10
View File
@@ -111,11 +111,6 @@ validate_fd(int arg) {
return arg >= 1 && arg < (1 << 16);
}
bool
validate_throttle_interval(int arg) {
return arg > 0 && arg < 5000;
}
void
apply_download_min_peers(Control* m, int arg) {
m->core()->get_download_list().slot_map_insert()["1_min_peers"] = sigc::bind(sigc::mem_fun(&core::Download::call<void, uint32_t, &torrent::Download::set_peers_min>), arg);
@@ -184,11 +179,6 @@ apply_max_open_sockets(Control* m, int arg) {
torrent::set_max_open_sockets(arg);
}
void
apply_throttle_interval(Control* m, int arg) {
torrent::set_throttle_interval(arg * 1000);
}
void
apply_bind(Control* m, const std::string& arg) {
torrent::set_bind_address(arg);