Browse Source

Insert symbols counting their weights with respect to grow_factor.

tags/0.4.4
Vsevolod Stakhov 13 years ago
parent
commit
a563a02df1
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/filter.c

+ 2
- 1
src/filter.c View File

@@ -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;


Loading…
Cancel
Save