From: Vsevolod Stakhov Date: Wed, 17 Aug 2011 11:58:30 +0000 (+0400) Subject: Insert symbols counting their weights with respect to grow_factor. X-Git-Tag: 0.4.4~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a563a02df158d3b0f2accad163e960e4fc59ae5d;p=thirdparty%2Frspamd.git Insert symbols counting their weights with respect to grow_factor. --- diff --git a/src/filter.c b/src/filter.c index c0c21681d2..f4048955d8 100644 --- a/src/filter.c +++ b/src/filter.c @@ -112,7 +112,6 @@ insert_metric_result (struct worker_task *task, struct metric *metric, const gch } else { s = memory_pool_alloc (task->task_pool, sizeof (struct symbol)); - s->score = w; /* Handle grow factor */ if (metric_res->grow_factor && w > 0) { @@ -122,6 +121,8 @@ insert_metric_result (struct worker_task *task, struct metric *metric, const gch else if (w > 0) { metric_res->grow_factor = metric->grow_factor; } + + s->score = w; s->name = symbol; metric_res->score += w;