diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-08-17 15:58:30 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-08-17 15:58:30 +0400 |
commit | a563a02df158d3b0f2accad163e960e4fc59ae5d (patch) | |
tree | 57c0b6cefe2da9e83cff26bed24798d9756ce904 | |
parent | 20b458c1b376e54a9585b6f845a32485bd0d4393 (diff) | |
download | rspamd-a563a02df158d3b0f2accad163e960e4fc59ae5d.tar.gz rspamd-a563a02df158d3b0f2accad163e960e4fc59ae5d.zip |
Insert symbols counting their weights with respect to grow_factor.
-rw-r--r-- | src/filter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/filter.c b/src/filter.c index c0c21681d..f4048955d 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; |