* Added global download slots. The "max_downloads_hack" option may be

used to test this feature. Note that there seems to be a bug in the
code causing exceptions.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@866 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-03-03 20:32:18 +00:00
parent b46caac088
commit f43cdad650
4 changed files with 7 additions and 33 deletions
+2
View File
@@ -489,6 +489,8 @@ initialize_variables() {
variables->insert("max_uploads_div", new utils::VariableValue(1));
variables->insert("max_chunks_queued", new utils::VariableValue(0));
variables->insert("max_downloads_hack", new utils::VariableValueSlot(rak::ptr_fn(&torrent::max_download_unchoked), rak::ptr_fn(&torrent::set_max_download_unchoked)));
variables->insert("download_rate", new utils::VariableValueSlot(rak::ptr_fn(&torrent::down_throttle), rak::mem_fn(control->ui(), &ui::Root::set_down_throttle_i64),
0, (1 << 10)));
variables->insert("upload_rate", new utils::VariableValueSlot(rak::ptr_fn(&torrent::up_throttle), rak::mem_fn(control->ui(), &ui::Root::set_up_throttle_i64),