From: Vsevolod Stakhov Date: Sun, 20 Apr 2014 15:31:49 +0000 (-0700) Subject: Actions values are double not int. X-Git-Tag: 0.7.0~317 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=652a06cf4aee7c9df2ffae9151cd22d4489dce48;p=thirdparty%2Frspamd.git Actions values are double not int. --- diff --git a/src/webui.c b/src/webui.c index cd893f3254..ae057623b0 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); }