diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-05-12 12:01:25 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-05-12 12:01:25 +0100 |
commit | 6dbeebbaf8f65a40a31414cf8c01161e8d8fefcc (patch) | |
tree | 1950c6d568c6eb6f58e417e90ad06a4a25ce8080 /src | |
parent | 2b00750d9ab32004efd56e11a55a673ac8844684 (diff) | |
download | rspamd-6dbeebbaf8f65a40a31414cf8c01161e8d8fefcc.tar.gz rspamd-6dbeebbaf8f65a40a31414cf8c01161e8d8fefcc.zip |
[Fix] Set proper counter
Diffstat (limited to 'src')
-rw-r--r-- | src/fuzzy_storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index 4146d636f..8a7a3de4e 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -700,7 +700,7 @@ rspamd_fuzzy_update_key_stat(gboolean matched, guint64 nmatched = key_stat->matched - key_stat->last_matched_count; rspamd_set_counter_ema (&key_stat->checked_ctr, nchecked, 0.5f); - rspamd_set_counter_ema (&key_stat->checked_ctr, nmatched, 0.5f); + rspamd_set_counter_ema (&key_stat->matched_ctr, nmatched, 0.5f); key_stat->last_checked_time = timestamp; key_stat->last_checked_count = key_stat->checked; key_stat->last_matched_count = key_stat->matched; |