From a3f7be32788e481ca9fc7a6f7bced50be4e6b8a3 Mon Sep 17 00:00:00 2001 From: rakshasa Date: Tue, 22 Aug 2006 11:10:11 +0000 Subject: [PATCH] * Rebound ^P for commands to ^X. * Map page entry about max_memory_usage and note about units. * Quick hash checking changes borked the logic for handling FS errors, etc. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@764 e378c898-3ddf-0310-93e7-cc216c733640 --- doc/rtorrent.1.xml | 32 ++++++++++++++++++++++++-------- src/ui/download_list.cc | 2 +- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/doc/rtorrent.1.xml b/doc/rtorrent.1.xml index 46877c3c..186d7b21 100644 --- a/doc/rtorrent.1.xml +++ b/doc/rtorrent.1.xml @@ -34,11 +34,16 @@ DESCRIPTION - rtorrent is a BitTorrent client for ncurses, - using the libtorrent library. The client - and library is written in C++ with emphasis on speed and - efficiency, while delivering equivalent features to those found - in GUI based clients in an ncurses client. +rtorrent is a BitTorrent client for ncurses, using +the libtorrent library. The client and library is +written in C++ with emphasis on speed and efficiency, while delivering +equivalent features to those found in GUI based clients in an ncurses +client. + + + +Most of the options below have their own default unit in addition to +supporting B, K, M and G suffixes. @@ -636,7 +641,7 @@ have been deleted. Clear the association with the 'U' key. Close any active torrents on filesystems with less than space diskspace left. Use with -schedule. +the schedule option. @@ -651,11 +656,11 @@ Stop torrents when they reach the given upload ratio min_ratio in percent. If the optional min_upload is given, require a total upload amount of this many bytes as well. If the optional -max_ratio> is given, stop the torrent +max_ratio is given, stop the torrent when reaching this ratio regardless of the total upload amount. Exclude certain torrent by pressing Shift+I in the downlist list. -Use with schedule. +Use with the schedule option. @@ -848,6 +853,17 @@ gives the client 128 sockets to use as it wishes. + + max_memory_usage = bytes + + +Set the max amount of memory space used to mapping file chunks. This +may also be set using ulimit -m where 3/4 will be +allocated to file chunks. + + + + send_buffer_size = value receive_buffer_size = value diff --git a/src/ui/download_list.cc b/src/ui/download_list.cc index 2e475af0..6fa88fde 100644 --- a/src/ui/download_list.cc +++ b/src/ui/download_list.cc @@ -319,7 +319,7 @@ DownloadList::setup_keys() { m_bindings['\n'] = sigc::bind(sigc::mem_fun(*this, &DownloadList::receive_view_input), INPUT_LOAD_MODIFIED); m_bindings[KEY_ENTER] = sigc::bind(sigc::mem_fun(*this, &DownloadList::receive_view_input), INPUT_LOAD_MODIFIED); m_bindings['\x0F'] = sigc::bind(sigc::mem_fun(*this, &DownloadList::receive_view_input), INPUT_CHANGE_DIRECTORY); - m_bindings['\x10'] = sigc::bind(sigc::mem_fun(*this, &DownloadList::receive_view_input), INPUT_COMMAND); + m_bindings['X' - '@'] = sigc::bind(sigc::mem_fun(*this, &DownloadList::receive_view_input), INPUT_COMMAND); m_uiArray[DISPLAY_LOG]->bindings()[' '] = sigc::bind(sigc::mem_fun(*this, &DownloadList::activate_display), DISPLAY_DOWNLOAD_LIST); m_uiArray[DISPLAY_LOG]->bindings()[KEY_LEFT] = sigc::bind(sigc::mem_fun(*this, &DownloadList::activate_display), DISPLAY_DOWNLOAD_LIST);