aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-11-14 15:54:33 +0200
committerRiccardo Spagni <ric@spagni.net>2017-11-14 15:54:33 +0200
commita2241e815118dfd0767449eec7de4bb279adfd8f (patch)
treef056ac3599c51661aecaf75b196fc14a969362fd /src/rpc/core_rpc_server.cpp
parentMerge pull request #2752 (diff)
parentRPC: get_info add rpc_connections_count (diff)
downloadmonero-a2241e815118dfd0767449eec7de4bb279adfd8f.tar.xz
Merge pull request #2753
fa514082 RPC: get_info add rpc_connections_count (Tim L)
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rwxr-xr-xsrc/rpc/core_rpc_server.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index acc2d9865..f6932c659 100755
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -153,6 +153,7 @@ namespace cryptonote
uint64_t total_conn = m_p2p.get_connections_count();
res.outgoing_connections_count = m_p2p.get_outgoing_connections_count();
res.incoming_connections_count = total_conn - res.outgoing_connections_count;
+ res.rpc_connections_count = get_connections_count();
res.white_peerlist_size = m_p2p.get_peerlist_manager().get_white_peers_count();
res.grey_peerlist_size = m_p2p.get_peerlist_manager().get_gray_peers_count();
res.testnet = m_testnet;
@@ -1395,6 +1396,7 @@ namespace cryptonote
uint64_t total_conn = m_p2p.get_connections_count();
res.outgoing_connections_count = m_p2p.get_outgoing_connections_count();
res.incoming_connections_count = total_conn - res.outgoing_connections_count;
+ res.rpc_connections_count = get_connections_count();
res.white_peerlist_size = m_p2p.get_peerlist_manager().get_white_peers_count();
res.grey_peerlist_size = m_p2p.get_peerlist_manager().get_gray_peers_count();
res.testnet = m_testnet;