diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-01-15 15:00:20 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-01-15 15:00:20 +0200 |
commit | b085fbc667f453085d174e8a33f84e1c84ab3b19 (patch) | |
tree | 4befded2fd3be16de278d426a5df03009cf8be4b | |
parent | Merge pull request #608 (diff) | |
parent | 'max limit of...' is redundant wording, rephrase (diff) | |
download | monero-b085fbc667f453085d174e8a33f84e1c84ab3b19.tar.xz |
Merge pull request #609
0100e95 'max limit of...' is redundant wording, rephrase (binaryFate)
80e3889 Print msg when successfully updating out_peers (binaryFate)
-rw-r--r-- | src/daemon/command_server.cpp | 2 | ||||
-rw-r--r-- | src/daemon/rpc_command_executor.cpp | 2 | ||||
-rw-r--r-- | src/p2p/net_node.inl | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/src/daemon/command_server.cpp b/src/daemon/command_server.cpp index 8f434c89a..f99b0844a 100644 --- a/src/daemon/command_server.cpp +++ b/src/daemon/command_server.cpp @@ -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" diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp index fc06c858b..edf04bc82 100644 --- a/src/daemon/rpc_command_executor.cpp +++ b/src/daemon/rpc_command_executor.cpp @@ -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; } diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index 3cd874f7a..47a5dc6c3 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -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}; |