daemon: fix print_net_stats RPC calls

This commit is contained in:
moneromooo-monero 2020-03-29 12:09:24 +00:00 committed by wowario
parent b7be110ec3
commit 0df692a814
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111
1 changed files with 2 additions and 2 deletions

View File

@ -695,11 +695,11 @@ bool t_rpc_command_executor::print_net_stats()
if (m_is_rpc) if (m_is_rpc)
{ {
if (!m_rpc_client->json_rpc_request(net_stats_req, net_stats_res, "get_net_stats", fail_message.c_str())) if (!m_rpc_client->rpc_request(net_stats_req, net_stats_res, "/get_net_stats", fail_message.c_str()))
{ {
return true; return true;
} }
if (!m_rpc_client->json_rpc_request(limit_req, limit_res, "get_limit", fail_message.c_str())) if (!m_rpc_client->rpc_request(limit_req, limit_res, "/get_limit", fail_message.c_str()))
{ {
return true; return true;
} }