commit 6dbeebb: [Fix] Set proper counter
Vsevolod Stakhov
vsevolod at rspamd.com
Fri May 12 11:07:03 UTC 2023
Author: Vsevolod Stakhov
Date: 2023-05-12 12:01:25 +0100
URL: https://github.com/rspamd/rspamd/commit/6dbeebbaf8f65a40a31414cf8c01161e8d8fefcc (HEAD -> master)
[Fix] Set proper counter
---
src/fuzzy_storage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the Commits
mailing list