Merge pull request #609

0100e95 'max limit of...' is redundant wording, rephrase (binaryFate)
80e3889 Print msg when successfully updating out_peers (binaryFate)
This commit is contained in:
Riccardo Spagni 2016-01-15 15:00:20 +02:00
commit b085fbc667
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
3 changed files with 4 additions and 2 deletions

View file

@ -177,7 +177,7 @@ t_command_server::t_command_server(
m_command_lookup.set_handler(
"out_peers"
, std::bind(&t_command_parser_executor::out_peers, &m_parser, p::_1)
, "Set max limit of out peers"
, "Set max number of out peers"
);
m_command_lookup.set_handler(
"start_save_graph"

View file

@ -964,6 +964,8 @@ bool t_rpc_command_executor::out_peers(uint64_t limit)
}
}
std::cout << "Max number of out peers set to " << limit << std::endl;
return true;
}

View file

@ -92,7 +92,7 @@ namespace nodetool
const command_line::arg_descriptor<bool> arg_no_igd = {"no-igd", "Disable UPnP port mapping"};
const command_line::arg_descriptor<bool> arg_offline = {"offline", "Do not listen for peers, nor connect to any"};
const command_line::arg_descriptor<int64_t> arg_out_peers = {"out-peers", "set max limit of out peers", -1};
const command_line::arg_descriptor<int64_t> arg_out_peers = {"out-peers", "set max number of out peers", -1};
const command_line::arg_descriptor<int> arg_tos_flag = {"tos-flag", "set TOS flag", -1};
const command_line::arg_descriptor<int64_t> arg_limit_rate_up = {"limit-rate-up", "set limit-rate-up [kB/s]", -1};