]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Actions values are double not int.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 20 Apr 2014 15:31:49 +0000 (08:31 -0700)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 20 Apr 2014 15:31:49 +0000 (08:31 -0700)
src/webui.c

index cd893f3254629d6846f99dc9306a136a32eba9e8..ae057623b06595579ab6df8daf2d23d3d424eaff 100644 (file)
@@ -1348,7 +1348,7 @@ rspamd_webui_handle_saveactions (struct rspamd_http_connection_entry *conn_ent,
        ucl_object_t                                                    *obj, *cur;
        struct rspamd_webui_worker_ctx                  *ctx;
        const gchar                                                             *error;
-       gint64                                                                   score;
+       gdouble                                                                  score;
        gint                                                                     i;
        enum rspamd_metric_action                                act;
 
@@ -1411,7 +1411,7 @@ rspamd_webui_handle_saveactions (struct rspamd_http_connection_entry *conn_ent,
                        act = METRIC_ACTION_GREYLIST;
                        break;
                }
-               score = ucl_object_toint (cur);
+               score = ucl_object_todouble (cur);
                if (metric->actions[act].score != score) {
                        add_dynamic_action (ctx->cfg, DEFAULT_METRIC, act, score);
                }