From a7aa76f17ac22897e08558f0f78d891d3d4f7de6 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Thu, 12 Feb 2015 16:29:40 +0100 Subject: m_httpd_stats Remove days/hours/mins/secs from Uptime can be calculated easily from the boot time --- src/modules/m_httpd_stats.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/modules/m_httpd_stats.cpp') 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 << "" << ServerInstance->GetChans().size() << ""; data << "" << ServerInstance->Users->all_opers.size() << ""; data << "" << (SocketEngine::GetUsedFds()) << "" << SocketEngine::GetMaxFds() << "" INSPIRCD_SOCKETENGINE_NAME ""; - - 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 << "" << stime->tm_yday << "" << stime->tm_hour << "" << stime->tm_min << "" << stime->tm_sec << "" << ServerInstance->startup_time << ""; + data << "" << ServerInstance->startup_time << ""; data << ""; const std::vector& isupport = ServerInstance->ISupport.GetLines(); -- cgit v1.3.1-10-gc9f91