diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-20 08:31:49 -0700 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-20 08:31:49 -0700 |
commit | 652a06cf4aee7c9df2ffae9151cd22d4489dce48 (patch) | |
tree | af690f39e259913e8c86d05cd4db596ecb770240 | |
parent | ad837700b86153be3587672124ee663c964f0f15 (diff) | |
download | rspamd-652a06cf4aee7c9df2ffae9151cd22d4489dce48.tar.gz rspamd-652a06cf4aee7c9df2ffae9151cd22d4489dce48.zip |
Actions values are double not int.
-rw-r--r-- | src/webui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webui.c b/src/webui.c index cd893f325..ae057623b 100644 --- a/src/webui.c +++ b/src/webui.c @@ -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); } |