From: Vsevolod Stakhov Date: Fri, 12 May 2023 11:01:25 +0000 (+0100) Subject: [Fix] Set proper counter X-Git-Tag: 3.6~123 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6dbeebbaf8f65a40a31414cf8c01161e8d8fefcc;p=thirdparty%2Frspamd.git [Fix] Set proper counter --- diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index 4146d636f7..8a7a3de4e8 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;