From 5d177cba9d5c258dc6fc333924eca58454699ed8 Mon Sep 17 00:00:00 2001 From: Johanna A Date: Fri, 19 Feb 2016 23:30:56 +0100 Subject: Adds tag with command usage to httpd_stats. --- src/modules/m_httpd_stats.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index ad0b4bb72..541e080f5 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -217,7 +217,15 @@ class ModuleHttpStats : public Module, public HTTPRequestEventListener data << ""; } - data << ""; + data << ""; + + const CommandParser::CommandMap& commands = ServerInstance->Parser.GetCommands(); + for (CommandParser::CommandMap::const_iterator i = commands.begin(); i != commands.end(); ++i) + { + data << "" << i->second->name << "" << i->second->use_count << ""; + } + + data << ""; /* Send the document back to m_httpd */ HTTPDocumentResponse response(this, *http, &data, 200); -- cgit v1.2.3