From ca84c71c39707d268ff0344e204666acb4fdbf46 Mon Sep 17 00:00:00 2001 From: EinMByte Date: Tue, 18 Aug 2015 10:58:24 +0200 Subject: [PATCH] Fix #252. --- i2pcontrol/I2PControl.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/i2pcontrol/I2PControl.cpp b/i2pcontrol/I2PControl.cpp index f44709a7..eb699b24 100644 --- a/i2pcontrol/I2PControl.cpp +++ b/i2pcontrol/I2PControl.cpp @@ -309,16 +309,15 @@ void I2PControlSession::handleNetDbKnownPeers(Response& response) void I2PControlSession::handleNetDbActivePeers(Response& response) { response.setParam( - I2P_CONTROL_ROUTER_INFO_NETDB_KNOWNPEERS, - i2p::data::netdb.GetNumRouters() + I2P_CONTROL_ROUTER_INFO_NETDB_ACTIVEPEERS, + (int)i2p::transport::transports.GetPeers().size() ); } void I2PControlSession::handleNetStatus(Response& response) { response.setParam( - I2P_CONTROL_ROUTER_INFO_NETDB_ACTIVEPEERS, - (int)i2p::transport::transports.GetPeers().size() + I2P_CONTROL_ROUTER_INFO_NET_STATUS, (int)i2p::context.GetStatus() ); }