mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-17 07:32:32 +00:00
* Added TextElementBranch that uses a slot as the conditional.
* Added timeout to WindowText and updated download and peer info. * Moved default http agent string to rtorrent/configure.ac. * Periodic syncing of chunks now tries to only sync tightly packed ranges of chunks unless timeout_sync has been reached. * ChunkManager now checks if max memory is set to RLIM_INFINITY, if so use 2^32. * Added safe_sync option that forces MS_SYNC to be used before unmapping chunks. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@757 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -466,6 +466,9 @@ initialize_option_handler(Control* c) {
|
||||
variables->insert("max_memory_usage", new utils::VariableValueSlot(rak::mem_fn(torrent::chunk_manager(), &torrent::ChunkManager::max_memory_usage),
|
||||
rak::mem_fn(torrent::chunk_manager(), &torrent::ChunkManager::set_max_memory_usage)));
|
||||
|
||||
variables->insert("safe_sync", new utils::VariableValueSlot(rak::mem_fn(torrent::chunk_manager(), &torrent::ChunkManager::safe_sync),
|
||||
rak::mem_fn(torrent::chunk_manager(), &torrent::ChunkManager::set_safe_sync)));
|
||||
|
||||
variables->insert("timeout_sync", new utils::VariableValueSlot(rak::mem_fn(torrent::chunk_manager(), &torrent::ChunkManager::timeout_sync),
|
||||
rak::mem_fn(torrent::chunk_manager(), &torrent::ChunkManager::set_timeout_sync)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user