summaryrefslogtreecommitdiffhomepage
path: root/connectionregistry.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-02-04 12:43:51 +0100
committerRoland Reichwein <mail@reichwein.it>2023-02-04 12:43:51 +0100
commitc4a1f194e79a7834a54fdbf63d73c33e434b4825 (patch)
tree51eae6c701f38e47790b7200b423de8c89b38465 /connectionregistry.cpp
parent1771f788a5b9e844f0a5315faee104648e3b7d88 (diff)
Added stats.html
Diffstat (limited to 'connectionregistry.cpp')
-rw-r--r--connectionregistry.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/connectionregistry.cpp b/connectionregistry.cpp
index 11a538b..412472d 100644
--- a/connectionregistry.cpp
+++ b/connectionregistry.cpp
@@ -81,6 +81,11 @@ void ConnectionRegistry::dump() const
}
}
+size_t ConnectionRegistry::number_of_connections() const
+{
+ return m_connections.size();
+}
+
ConnectionRegistry::RegistryGuard::RegistryGuard(ConnectionRegistry& registry, ConnectionRegistry::connection c):
m_registry{registry},
m_connection{c}