diff options
author | xsmile | 2017-03-17 19:19:08 +0100 |
---|---|---|
committer | xsmile | 2017-03-17 19:19:08 +0100 |
commit | 1e88a70b5570584ca4e88addb63cf2eefb8b461c (patch) | |
tree | eac8d77cab66d48ac2f3aeb2287c939423f4586d /ui_pyroscope.cc | |
parent | 2b6a07140b45be05f35eabfbe55c16fc6e71eb26 (diff) | |
download | aur-1e88a70b5570584ca4e88addb63cf2eefb8b461c.tar.gz |
update
Diffstat (limited to 'ui_pyroscope.cc')
-rw-r--r-- | ui_pyroscope.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ui_pyroscope.cc b/ui_pyroscope.cc index f430df654087..6454dc6d69fc 100644 --- a/ui_pyroscope.cc +++ b/ui_pyroscope.cc @@ -391,15 +391,15 @@ void ui_pyroscope_download_list_redraw_item(Window* window, display::Canvas* can // better handling for trail of line 2 (ratio etc.) int status_pos = 91; - int ratio = rpc::call_command_value("d.get_ratio", rpc::make_target(*range.first)); + int ratio = rpc::call_command_value("d.ratio", rpc::make_target(*range.first)); if (status_pos < canvas->width()) { canvas->print(status_pos, pos+1, "R:%6.2f [%c%c] %-4.4s ", float(ratio) / 1000.0, - rpc::call_command_string("d.get_tied_to_file", rpc::make_target(*range.first)).empty() ? ' ' : 'T', - (rpc::call_command_value("d.get_ignore_commands", rpc::make_target(*range.first)) == 0) ? ' ' : 'I', + rpc::call_command_string("d.tied_to_file", rpc::make_target(*range.first)).empty() ? ' ' : 'T', + (rpc::call_command_value("d.ignore_commands", rpc::make_target(*range.first)) == 0) ? ' ' : 'I', (*range.first)->priority() == 2 ? "" : - rpc::call_command_string("d.get_priority_str", rpc::make_target(*range.first)).c_str() + rpc::call_command_string("d.priority_str", rpc::make_target(*range.first)).c_str() ); status_pos += 9 + 5 + 5; } @@ -410,7 +410,7 @@ void ui_pyroscope_download_list_redraw_item(Window* window, display::Canvas* can if (!(*range.first)->bencode()->get_key("rtorrent").get_key_string("throttle_name").empty()) { //item_status += "T="; - item_status += rpc::call_command_string("d.get_throttle_name", rpc::make_target(*range.first)) + ' '; + item_status += rpc::call_command_string("d.throttle_name", rpc::make_target(*range.first)) + ' '; } // left-justifying this also overwrites any junk from the original display that we overwrite @@ -530,7 +530,7 @@ bool ui_pyroscope_download_list_redraw(Window* window, display::Canvas* canvas, core::Download* d = *range.first; core::Download* item = d; torrent::Tracker* tracker = get_active_tracker((*range.first)->download()); - int ratio = rpc::call_command_value("d.get_ratio", rpc::make_target(d)); + int ratio = rpc::call_command_value("d.ratio", rpc::make_target(d)); bool has_msg = !d->message().empty(); bool has_alert = has_msg && d->message().find("Tried all trackers") == std::string::npos; int offset = row_offset(view, range); @@ -583,8 +583,8 @@ bool ui_pyroscope_download_list_redraw(Window* window, display::Canvas* canvas, canvas->print(0, pos, "%s %s%s%s%s%s%s%s%s %s %s %s %s %s%s %s%s%s", range.first == view->focus() ? "»" : " ", item->is_open() ? item->is_active() ? "▹ " : "╍ " : "▪ ", - rpc::call_command_string("d.get_tied_to_file", rpc::make_target(d)).empty() ? " " : "⚯ ", - rpc::call_command_value("d.get_ignore_commands", rpc::make_target(d)) == 0 ? "⚒ " : "◌ ", + rpc::call_command_string("d.tied_to_file", rpc::make_target(d)).empty() ? " " : "⚯ ", + rpc::call_command_value("d.ignore_commands", rpc::make_target(d)) == 0 ? "⚒ " : "◌ ", prios[d->priority() % 4], d->is_done() ? "✔ " : progress_style == 0 ? progress_str : progress[progress_style][ item->file_list()->completed_chunks() * PROGRESS_STEPS |