diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-12-30 17:08:41 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-12-30 17:08:41 +0000 |
commit | c5e10a08439bb9d91ccb7268f76725de2650f50a (patch) | |
tree | 9b27626a95feb3c22c7c9126c60fc9f8090369a2 | |
parent | 2c3794e8f11308be3d53e3761810bb2e9901970b (diff) | |
download | rspamd-c5e10a08439bb9d91ccb7268f76725de2650f50a.tar.gz rspamd-c5e10a08439bb9d91ccb7268f76725de2650f50a.zip |
Unknown symbols now have zero weight not 1.0.
-rw-r--r-- | src/filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |