diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-06-20 08:47:45 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-06-20 08:47:45 +0100 |
commit | 22794d547d1147d31bb226912ea37bfc8bf8d5f1 (patch) | |
tree | 154052be24330b9fab583937818003f6c7a60060 /src/controller.c | |
parent | 89bc0e860425086da5123eed134ab60836d6720c (diff) | |
download | rspamd-22794d547d1147d31bb226912ea37bfc8bf8d5f1.tar.gz rspamd-22794d547d1147d31bb226912ea37bfc8bf8d5f1.zip |
[Minor] Return number of hits for a symbol when querying
Diffstat (limited to 'src/controller.c')
-rw-r--r-- | src/controller.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controller.c b/src/controller.c index b72f0ad4f..3d88aa090 100644 --- a/src/controller.c +++ b/src/controller.c @@ -816,7 +816,7 @@ rspamd_controller_handle_symbols (struct rspamd_http_connection_entry *conn_ent, } if (rspamd_symbols_cache_stat_symbol (session->ctx->cfg->cache, - sym->name, &freq, &freq_dev, &tm)) { + sym->name, &freq, &freq_dev, &tm, NULL)) { ucl_object_insert_key (sym_obj, ucl_object_fromdouble (freq), "frequency", 0, false); |