diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-24 23:02:59 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-24 23:02:59 +0100 |
commit | f163ec3b4f55cb0e7c5384ee1bd27561b3e8820e (patch) | |
tree | 3b99cd50d0bd11b7eee0aae3740fe4c44d11e889 /src/rspamd.c | |
parent | efb6bd2dea636280bf95b466ce099c9bd848466c (diff) | |
download | rspamd-f163ec3b4f55cb0e7c5384ee1bd27561b3e8820e.tar.gz rspamd-f163ec3b4f55cb0e7c5384ee1bd27561b3e8820e.zip |
Finish history format rework.
Diffstat (limited to 'src/rspamd.c')
-rw-r--r-- | src/rspamd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rspamd.c b/src/rspamd.c index 3609a3c5c..31d6dad78 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -816,8 +816,6 @@ main (gint argc, gchar **argv, gchar **env) "main"); rspamd_main->stat = rspamd_mempool_alloc0_shared (rspamd_main->server_pool, sizeof (struct rspamd_stat)); - /* Create rolling history */ - rspamd_main->history = rspamd_roll_history_new (rspamd_main->server_pool); rspamd_main->cfg = (struct rspamd_config *) g_malloc0 (sizeof (struct rspamd_config)); @@ -950,6 +948,10 @@ main (gint argc, gchar **argv, gchar **env) rspamd_main->cfg->log_level = G_LOG_LEVEL_DEBUG; } + /* Create rolling history */ + rspamd_main->history = rspamd_roll_history_new (rspamd_main->server_pool, + rspamd_main->cfg->history_rows); + gperf_profiler_init (rspamd_main->cfg, "main"); msg_info_main ("rspamd " |