From a563a02df158d3b0f2accad163e960e4fc59ae5d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 17 Aug 2011 15:58:30 +0400 Subject: [PATCH] Insert symbols counting their weights with respect to grow_factor. --- src/filter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5