From 80b5b55a53622875d4973ea1d440dc7fa916f20b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 4 Aug 2010 17:50:57 +0400 Subject: * Fix wirting message id during fuzzy_add command * Display weight of symbols correctly --- src/filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/filter.c') diff --git a/src/filter.c b/src/filter.c index d5e127b7a..9e2da0c57 100644 --- a/src/filter.c +++ b/src/filter.c @@ -97,7 +97,7 @@ insert_metric_result (struct worker_task *task, struct metric *metric, const cha memory_pool_add_destructor (task->task_pool, (pool_destruct_func) g_list_free, s->options); } - s->score = w; + s->score += w; } else { s = memory_pool_alloc (task->task_pool, sizeof (struct symbol)); -- cgit v1.2.3