Added throttle_interval option and backend.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@481 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-06-29 01:30:59 +00:00
parent d04adf81ae
commit 52884c3c39
5 changed files with 44 additions and 15 deletions
+10
View File
@@ -80,6 +80,11 @@ validate_fd(int arg) {
return arg >= 10 && arg < (1 << 16);
}
bool
validate_throttle_interval(int arg) {
return arg > 0 && arg < 5000;
}
void
apply_download_min_peers(ui::Control* m, int arg) {
m->get_core().get_download_list().slot_map_insert().insert("1_min_peers", sigc::bind(sigc::mem_fun(&core::Download::call<void, uint32_t, &torrent::Download::set_peers_min>), arg));
@@ -123,6 +128,11 @@ apply_max_open_files(ui::Control* m, int arg) {
torrent::set_max_open_files(arg);
}
void
apply_throttle_interval(ui::Control* m, int arg) {
torrent::set_throttle_interval(arg * 1000);
}
void
apply_bind(ui::Control* m, const std::string& arg) {
torrent::set_bind(arg);