diff options
Diffstat (limited to 'modules/core/os_stats.cpp')
-rw-r--r-- | modules/core/os_stats.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/core/os_stats.cpp b/modules/core/os_stats.cpp index d965c7dc5..332b6ba4f 100644 --- a/modules/core/os_stats.cpp +++ b/modules/core/os_stats.cpp @@ -130,7 +130,7 @@ class CommandOSStats : public Command CommandReturn DoStatsUptime(User *u) { char timebuf[64]; - time_t uptime = time(NULL) - start_time; + time_t uptime = Anope::CurTime - start_time; int days = uptime / 86400, hours = (uptime / 3600) % 24, mins = (uptime / 60) % 60, secs = uptime % 60; notice_lang(Config->s_OperServ, u, OPER_STATS_CURRENT_USERS, usercnt, opcnt); struct tm *tm = localtime(&maxusertime); |