From 4c8dd6a6758019b253bf584f62864870de8de999 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 15 Mar 2026 12:52:55 +0000 Subject: Change ServerList to return a list of Server* not a duplicate class. --- modules/httpd_stats.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/httpd_stats.cpp') diff --git a/modules/httpd_stats.cpp b/modules/httpd_stats.cpp index 1e5d50f9e..b45f953d8 100644 --- a/modules/httpd_stats.cpp +++ b/modules/httpd_stats.cpp @@ -308,15 +308,15 @@ namespace Stats ServerInstance->PI->GetServerList(sl); serializer.BeginBlock("serverlist"); - for (const auto& server : sl) + for (const auto* server : sl) { + const auto* parent = server->GetParent(); serializer.BeginBlock("server") - .Attribute("servername", server.servername) - .Attribute("parentname", server.parentname) - .Attribute("description", server.description) - .Attribute("usercount", server.usercount) - .Attribute("opercount", server.opercount) - .Attribute("lagmillisecs", server.latencyms) + .Attribute("servername", server->GetName()) + .Attribute("parentname", parent ? parent->GetName() : "") + .Attribute("description", server->GetDesc()) + .Attribute("usercount", server->GetUserCount()) + .Attribute("opercount", server->GetOperCount()) .EndBlock(); } serializer.EndBlock(); -- cgit v1.3.1-10-gc9f91