mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-17 07:32:32 +00:00
* '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:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user