diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-12-31 16:24:26 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-12-31 16:24:26 +0000 |
commit | 3d97b8ca01fea56ba9371cb3992a9cb2c791030e (patch) | |
tree | 35dc4e2973153eb00b5979098de17631b7d6495b | |
parent | 381855ed424d8bbc4f755d3f3f6fa58df2f14971 (diff) | |
download | rspamd-3d97b8ca01fea56ba9371cb3992a9cb2c791030e.tar.gz rspamd-3d97b8ca01fea56ba9371cb3992a9cb2c791030e.zip |
Use seconds instead of milliseconds in expire.
-rw-r--r-- | src/fuzzy_storage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index 51388dd3e..9bd4d49d3 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -98,7 +98,7 @@ static sig_atomic_t wanna_die = 0; struct rspamd_fuzzy_storage_ctx { gboolean use_judy; char *hashfile; - guint32 expire; + gdouble expire; guint32 frequent_score; guint32 max_mods; radix_tree_t *update_ips; @@ -1050,7 +1050,7 @@ init_fuzzy (struct config_file *cfg) rspamd_rcl_register_worker_option (cfg, type, "expire", rspamd_rcl_parse_struct_time, ctx, - G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx, expire), RSPAMD_CL_FLAG_TIME_UINT_32); + G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx, expire), RSPAMD_CL_FLAG_TIME_FLOAT); rspamd_rcl_register_worker_option (cfg, type, "use_judy", rspamd_rcl_parse_struct_boolean, ctx, |