From c5e10a08439bb9d91ccb7268f76725de2650f50a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 30 Dec 2013 17:08:41 +0000 Subject: [PATCH] Unknown symbols now have zero weight not 1.0. --- src/filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filter.c b/src/filter.c index d635c49e5..b1448f173 100644 --- a/src/filter.c +++ b/src/filter.c @@ -89,7 +89,7 @@ insert_metric_result (struct worker_task *task, struct metric *metric, const gch weight = g_hash_table_lookup (metric->symbols, symbol); if (weight == NULL) { - w = 1.0 * flag; + w = 0.0; } else { w = (*weight) * flag; -- 2.39.5