mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-13 21:52:30 +00:00
* Renamed all commands to from e.g "get_d_*" to "d.get_*". Remember to
update your rc file. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@953 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -160,12 +160,12 @@ print_download_info(char* first, char* last, core::Download* d) {
|
||||
}
|
||||
|
||||
first = print_buffer(first, last, " [%c%c R: %4.2f",
|
||||
rpc::call_command_d_string("get_d_tied_to_file", d).empty() ? ' ' : 'T',
|
||||
rpc::call_command_d_value("get_d_ignore_commands", d) == 0 ? ' ' : 'I',
|
||||
(double)rpc::call_command_d_value("get_d_ratio", d) / 1000.0);
|
||||
rpc::call_command_d_string("d.get_tied_to_file", d).empty() ? ' ' : 'T',
|
||||
rpc::call_command_d_value("d.get_ignore_commands", d) == 0 ? ' ' : 'I',
|
||||
(double)rpc::call_command_d_value("d.get_ratio", d) / 1000.0);
|
||||
|
||||
if (d->priority() != 2)
|
||||
first = print_buffer(first, last, " %s]", rpc::call_command_d_string("get_d_priority_str", d).c_str());
|
||||
first = print_buffer(first, last, " %s]", rpc::call_command_d_string("d.get_priority_str", d).c_str());
|
||||
else
|
||||
first = print_buffer(first, last, "]");
|
||||
|
||||
@@ -179,7 +179,7 @@ char*
|
||||
print_download_status(char* first, char* last, core::Download* d) {
|
||||
if (d->is_active())
|
||||
;
|
||||
else if (rpc::call_command_d_value("get_d_hashing", d) != 0)
|
||||
else if (rpc::call_command_d_value("d.get_hashing", d) != 0)
|
||||
first = print_buffer(first, last, "Hashing: ");
|
||||
else if (!d->is_active())
|
||||
first = print_buffer(first, last, "Inactive: ");
|
||||
|
||||
Reference in New Issue
Block a user