diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-06 15:25:07 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-06 15:25:07 +0000 |
commit | 0e7f9f3d4666f7bd864f65e87820f5a6b1a8f433 (patch) | |
tree | 96867fea6b5650b364aa09169836d39e0c8002b1 /src/libstat/stat_config.c | |
parent | 96d887fb8e167278e5406f91882ac262355c9ebe (diff) | |
download | rspamd-0e7f9f3d4666f7bd864f65e87820f5a6b1a8f433.tar.gz rspamd-0e7f9f3d4666f7bd864f65e87820f5a6b1a8f433.zip |
Store event base in statistics library
Diffstat (limited to 'src/libstat/stat_config.c')
-rw-r--r-- | src/libstat/stat_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstat/stat_config.c b/src/libstat/stat_config.c index 1f16a98de..bca4cd954 100644 --- a/src/libstat/stat_config.c +++ b/src/libstat/stat_config.c @@ -84,7 +84,7 @@ static struct rspamd_stat_cache stat_caches[] = { }; void -rspamd_stat_init (struct rspamd_config *cfg) +rspamd_stat_init (struct rspamd_config *cfg, struct event_base *ev_base) { GList *cur, *curst; struct rspamd_classifier_config *clf; @@ -110,6 +110,7 @@ rspamd_stat_init (struct rspamd_config *cfg) stat_ctx->cfg = cfg; stat_ctx->statfiles = g_ptr_array_new (); stat_ctx->classifiers = g_ptr_array_new (); + stat_ctx->ev_base = ev_base; REF_RETAIN (stat_ctx->cfg); /* Create statfiles from the classifiers */ @@ -193,7 +194,6 @@ void rspamd_stat_close (void) { guint i; - struct rspamd_config *cfg = stat_ctx->cfg; g_assert (stat_ctx != NULL); |