aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/rspamd_symcache.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-08 09:32:19 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-08 09:32:19 +0100
commitfc128a6dcde3b7758e4f7391ff2b064f37276e8f (patch)
tree3f05d602d011d9381464fb759cc933c0fa4913a5 /src/libserver/rspamd_symcache.c
parent2c8baef8f0dc257d6321b1ed55dc8ffea7e76864 (diff)
downloadrspamd-fc128a6dcde3b7758e4f7391ff2b064f37276e8f.tar.gz
rspamd-fc128a6dcde3b7758e4f7391ff2b064f37276e8f.zip
[Minor] Fix types
Diffstat (limited to 'src/libserver/rspamd_symcache.c')
-rw-r--r--src/libserver/rspamd_symcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/rspamd_symcache.c b/src/libserver/rspamd_symcache.c
index 1d285dc6f..bc3b5295c 100644
--- a/src/libserver/rspamd_symcache.c
+++ b/src/libserver/rspamd_symcache.c
@@ -2684,7 +2684,6 @@ rspamd_symcache_finalize_item (struct rspamd_task *task,
struct rspamd_symcache_dynamic_item *dyn_item;
gdouble t2, diff;
guint i;
- struct timeval tv;
const gdouble slow_diff_limit = 300;
/* Sanity checks */
@@ -2713,6 +2712,7 @@ rspamd_symcache_finalize_item (struct rspamd_task *task,
checkpoint->cur_item = NULL;
#ifdef HAVE_EVENT_NO_CACHE_TIME_FUNC
+ struct timeval tv;
event_base_update_cache_time (task->ev_base);
event_base_gettimeofday_cached (task->ev_base, &tv);
t2 = tv_to_double (&tv);