summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-02-12 16:29:40 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-02-12 16:29:40 +0100
commita7aa76f17ac22897e08558f0f78d891d3d4f7de6 (patch)
treea4eea7c2d6222a8eadac506cec2c2e234580a5c4 /src/modules
parentb02985f27da21324a8e5e162b83025065420d79d (diff)
m_httpd_stats Remove days/hours/mins/secs from <uptime>
Uptime can be calculated easily from the boot time
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_httpd_stats.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp
index ae65f0692..35a4b0fb2 100644
--- a/src/modules/m_httpd_stats.cpp
+++ b/src/modules/m_httpd_stats.cpp
@@ -107,13 +107,7 @@ class ModuleHttpStats : public Module
data << "<channelcount>" << ServerInstance->GetChans().size() << "</channelcount>";
data << "<opercount>" << ServerInstance->Users->all_opers.size() << "</opercount>";
data << "<socketcount>" << (SocketEngine::GetUsedFds()) << "</socketcount><socketmax>" << SocketEngine::GetMaxFds() << "</socketmax><socketengine>" INSPIRCD_SOCKETENGINE_NAME "</socketengine>";
-
- time_t current_time = 0;
- current_time = ServerInstance->Time();
- time_t server_uptime = current_time - ServerInstance->startup_time;
- struct tm* stime;
- stime = gmtime(&server_uptime);
- data << "<uptime><days>" << stime->tm_yday << "</days><hours>" << stime->tm_hour << "</hours><mins>" << stime->tm_min << "</mins><secs>" << stime->tm_sec << "</secs><boot_time_t>" << ServerInstance->startup_time << "</boot_time_t></uptime>";
+ data << "<uptime><boot_time_t>" << ServerInstance->startup_time << "</boot_time_t></uptime>";
data << "<isupport>";
const std::vector<std::string>& isupport = ServerInstance->ISupport.GetLines();