* 'I' key set the download to ignore the start/stop_try commands.

* Added options for timeout_sync/safe_sync and max_chunks_queued.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@739 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-07-07 22:19:20 +00:00
parent 63311270c9
commit 52bf80d704
8 changed files with 102 additions and 81 deletions
+7 -4
View File
@@ -152,12 +152,15 @@ print_download_info(char* first, char* last, core::Download* d) {
first = print_buffer(first, last, " ");
}
if (d->download()->bytes_done() > 0)
first = print_buffer(first, last, " R: %3.2f",
(double)(100 * d->download()->up_rate()->total() / d->download()->bytes_done()) / 100);
first = print_buffer(first, last, " [%c%c R: %3.2f",
d->variable()->get_string("tied_to_file").empty() ? ' ' : 'T',
d->variable()->get_value("ignore_commands") == 0 ? ' ' : 'I',
d->download()->bytes_done() > 0 ? (double)(100 * d->download()->up_rate()->total() / d->download()->bytes_done()) / 100 : 0.0);
if (d->priority() != 2)
first = print_buffer(first, last, " [%s]", core::Download::priority_to_string(d->priority()));
first = print_buffer(first, last, " %s]", core::Download::priority_to_string(d->priority()));
else
first = print_buffer(first, last, "]");
if (first > last)
throw torrent::client_error("print_download_info(...) wrote past end of the buffer.");