Add print_pl_stats daemon command

This commit is contained in:
Miguel Herranz
2017-02-23 18:20:17 +01:00
parent d666339853
commit 3bdda60f3e
5 changed files with 44 additions and 0 deletions

View File

@@ -68,6 +68,11 @@ t_command_server::t_command_server(
, std::bind(&t_command_parser_executor::print_peer_list, &m_parser, p::_1)
, "Print peer list"
);
m_command_lookup.set_handler(
"print_pl_stats"
, std::bind(&t_command_parser_executor::print_peer_list_stats, &m_parser, p::_1)
, "Print peer list stats"
);
m_command_lookup.set_handler(
"print_cn"
, std::bind(&t_command_parser_executor::print_connections, &m_parser, p::_1)