From 8ce76f29ab6bc6ea0809c085b4f395373b3cb8d7 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Tue, 9 Apr 2013 17:59:01 -0700 Subject: Also implement x32 support --- src/tool/eathena-monitor.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/tool') diff --git a/src/tool/eathena-monitor.cpp b/src/tool/eathena-monitor.cpp index 0a07d3b..30e7184 100644 --- a/src/tool/eathena-monitor.cpp +++ b/src/tool/eathena-monitor.cpp @@ -18,6 +18,7 @@ #include #include "../common/cxxstdio.hpp" +#include "../common/utils.hpp" #include "../poison.hpp" @@ -212,10 +213,8 @@ int main(int argc, char *argv[]) { } while (1) { // write stuff to stderr - time_t t = time(NULL); - struct tm *tmp = localtime(&t); - char timestamp[256]; - strftime(timestamp, sizeof(timestamp), "%F %T", tmp); + timestamp_seconds_buffer timestamp; + stamp_time(timestamp); if (!pid_login) { pid_login = start_process(login_server); -- cgit v1.2.3-60-g2f50