]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Use seconds instead of milliseconds in expire.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 31 Dec 2013 16:24:26 +0000 (16:24 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 31 Dec 2013 16:24:26 +0000 (16:24 +0000)
src/fuzzy_storage.c

index 51388dd3ef2ed56ba8d347c3b0b137b13aa75382..9bd4d49d34bf7df0c2baf9e90fc6b0eebfe7e432 100644 (file)
@@ -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,