From ee275105a0bdf08bbbb9f5e78109d90715a240ea Mon Sep 17 00:00:00 2001 From: dr|z3d Date: Fri, 20 Aug 2021 01:15:52 +0000 Subject: [PATCH] Console: transit under local on summary; source cleanups --- daemon/HTTPServer.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/daemon/HTTPServer.cpp b/daemon/HTTPServer.cpp index e689f3d7..c7ca631d 100644 --- a/daemon/HTTPServer.cpp +++ b/daemon/HTTPServer.cpp @@ -1152,26 +1152,23 @@ namespace http { void ShowTunnelSummary (std::stringstream& s) { std::string webroot; i2p::config::GetOption("http.webroot", webroot); + size_t localInCount = i2p::tunnel::tunnels.CountInboundTunnels(); + size_t localOutCount = i2p::tunnel::tunnels.CountOutboundTunnels(); + size_t transitCount = i2p::tunnel::tunnels.CountTransitTunnels(); s << "" << tr("Tunnel Summary") << "\r\n"; s << "\r\n"; s << "\r\n" << "" << "" << "\r\n\r\n"; - size_t transitCount = i2p::tunnel::tunnels.CountTransitTunnels(); + s << "" + << "\r\n"; if (transitCount > 0) { s << "" << "\r\n"; } -// s << "" -// << "\r\n" - size_t localInCount = i2p::tunnel::tunnels.CountInboundTunnels(); - size_t localOutCount = i2p::tunnel::tunnels.CountOutboundTunnels(); - s << "" - << "\r\n" -// << "\r\n" - << "\r\n
" << tr("Type") << "" << tr("Inbound") << "" << tr("Outbound") << "" << tr("View Details") << "
" << tr("Local") << "" << localInCount << "" << localOutCount << "View
" << tr("Transit") << "" << transitCount << "View
" << tr("Exploratory") << "------View
" << tr("Local") << "" << localInCount << "" << localOutCount << "View
" << tr("Service") << "count in/outView
"; - ShowI2PTunnels (s); + s << "
"; + ShowI2PTunnels (s); s << "
\r\n"; s << "\r\n"; }