diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-02-18 13:35:59 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-02-18 13:35:59 +0000 |
commit | f1becea682b563d366add102cd88431f15182b26 (patch) | |
tree | ddb0f320ccddad22add4ff5425c53c3dd70696cb /src/libserver | |
parent | c1c7b9c63d6d2cdf5c42443b7a9c8c80bae49162 (diff) | |
download | rspamd-f1becea682b563d366add102cd88431f15182b26.tar.gz rspamd-f1becea682b563d366add102cd88431f15182b26.zip |
[Minor] Use own localtime/gmtime
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/worker_util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libserver/worker_util.c b/src/libserver/worker_util.c index 2ce4aaded..7c92dc359 100644 --- a/src/libserver/worker_util.c +++ b/src/libserver/worker_util.c @@ -791,7 +791,7 @@ rspamd_sessions_cache_periodic (gint fd, short what, gpointer p) gchar timebuf[32]; gpointer k, v; struct rspamd_worker_session_elt *elt; - struct tm *tms; + struct tm tms; GPtrArray *res; guint i; @@ -808,8 +808,8 @@ rspamd_sessions_cache_periodic (gint fd, short what, gpointer p) g_ptr_array_sort (res, rspamd_session_cache_sort_cmp); PTR_ARRAY_FOREACH (res, i, elt) { - tms = localtime (&elt->when); - strftime (timebuf, sizeof (timebuf), "%F %H:%M:%S", tms); + rspamd_localtime (elt->when, &tms); + strftime (timebuf, sizeof (timebuf), "%F %H:%M:%S", &tms); msg_warn ("redundant session; ptr: %p, " "tag: %s, refcount: %d, time: %s", |