add tunnel counts to front page of web ui

This commit is contained in:
Jeff Becker
2016-03-02 09:41:37 -05:00
parent 4c124284b6
commit eb96ead80e
3 changed files with 28 additions and 1 deletions

View File

@@ -793,7 +793,22 @@ namespace tunnel
if (t > timeout) timeout = t;
}
return timeout;
}
}
size_t Tunnels::CountTransitTunnels() {
// TODO: locking
return m_TransitTunnels.size();
}
size_t Tunnels::CountInboundTunnels() {
// TODO: locking
return m_InboundTunnels.size();
}
size_t Tunnels::CountOutboundTunnels() {
// TODO: locking
return m_OutboundTunnels.size();
}
}
}