Skip to content

Commit

Permalink
Add "d.down.sequential(.set)" commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jesec committed Dec 15, 2020
1 parent 2436486 commit bd904e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/command_download.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,12 @@ initialize_command_download() {
CMD2_DL_VAR_STRING(
"d.down.choke_heuristics.seed", "rtorrent", "choke_heuristics.down.seed");

CMD2_DL("d.down.sequential", CMD2_ON_INFO(is_sequential_enabled));
CMD2_DL_VALUE_V("d.down.sequential.set",
std::bind(&torrent::Download::set_sequential_enabled,
CMD2_BIND_DL,
std::placeholders::_2));

CMD2_DL("d.hashing_failed",
std::bind(&core::Download::is_hash_failed, std::placeholders::_1));
CMD2_DL_VALUE_V("d.hashing_failed.set",
Expand Down

0 comments on commit bd904e3

Please sign in to comment.