Browse Source

[Minor] Remove stupid threshold for saving symbol value

tags/3.8.0
Vsevolod Stakhov 5 months ago
parent
commit
0277935f57
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/controller.c

+ 1
- 1
src/controller.c View File

@@ -2414,7 +2414,7 @@ rspamd_controller_handle_savesymbols(
val = ucl_object_todouble(jvalue);
sym = g_hash_table_lookup(session->cfg->symbols, ucl_object_tostring(jname));

if (sym && fabs(*sym->weight_ptr - val) > 0.01) {
if (sym && fabs(*sym->weight_ptr - val) > DBL_EPSILON) {
if (!add_dynamic_symbol(ctx->cfg, DEFAULT_METRIC,
ucl_object_tostring(jname), val)) {
msg_err_session("add symbol failed for %s",

Loading…
Cancel
Save