diff --git a/daemon/HTTPServer.cpp b/daemon/HTTPServer.cpp
index 21c7b6c6..a13e8e57 100644
--- a/daemon/HTTPServer.cpp
+++ b/daemon/HTTPServer.cpp
@@ -701,6 +701,7 @@ namespace http {
{
s << "" << tr("Tunnels") << ":
\r\n";
s << "" << tr("Queue size") << ": " << i2p::tunnel::tunnels.GetQueueSize () << "
\r\n
\r\n";
+ s << "" << tr("TBM Queue size") << ": " << i2p::tunnel::tunnels.GetTBMQueueSize () << "
\r\n
\r\n";
auto ExplPool = i2p::tunnel::tunnels.GetExploratoryPool ();
diff --git a/libi2pd/TransitTunnel.h b/libi2pd/TransitTunnel.h
index bff1a8dd..c4a6e156 100644
--- a/libi2pd/TransitTunnel.h
+++ b/libi2pd/TransitTunnel.h
@@ -149,6 +149,7 @@ namespace tunnel
// for HTTP only
const auto& GetTransitTunnels () const { return m_TransitTunnels; };
+ size_t GetTunnelBuildMsgQueueSize () const { return m_TunnelBuildMsgQueue.GetSize (); };
};
}
}
diff --git a/libi2pd/Tunnel.h b/libi2pd/Tunnel.h
index a25012a4..2d0641e3 100644
--- a/libi2pd/Tunnel.h
+++ b/libi2pd/Tunnel.h
@@ -327,7 +327,8 @@ namespace tunnel
size_t CountInboundTunnels() const;
size_t CountOutboundTunnels() const;
- int GetQueueSize () { return m_Queue.GetSize (); };
+ size_t GetQueueSize () const { return m_Queue.GetSize (); };
+ size_t GetTBMQueueSize () const { return m_TransitTunnels.GetTunnelBuildMsgQueueSize (); };
int GetTunnelCreationSuccessRate () const { return std::round(m_TunnelCreationSuccessRate * 100); } // in percents
double GetPreciseTunnelCreationSuccessRate () const { return m_TunnelCreationSuccessRate * 100; } // in percents
int GetTotalTunnelCreationSuccessRate () const // in percents