From bd4ce0b8093c0b49c841ffdf43e72570dc70ca33 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 17 Aug 2014 15:57:51 +0100 Subject: Add configuration option `unknown_weight` for metrics. If this option is specified, then all filters add symbols to this metric with the specified weight even if they are not specified in symbols list explicitly. --- src/libmime/filter.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libmime') diff --git a/src/libmime/filter.h b/src/libmime/filter.h index f0a343483..c7ac43951 100644 --- a/src/libmime/filter.h +++ b/src/libmime/filter.h @@ -50,7 +50,9 @@ struct metric { const gchar *name; /**< name of metric */ gchar *func_name; /**< name of consolidation function */ metric_cons_func func; /**< c consolidation function */ - double grow_factor; /**< grow factor for metric */ + gboolean accept_unknown_symbols; /**< if true unknown symbols are registered here */ + gdouble unknown_weight; /**< weight of unknown symbols */ + gdouble grow_factor; /**< grow factor for metric */ GHashTable *symbols; /**< weights of symbols in metric */ GHashTable *descriptions; /**< descriptions of symbols in metric */ struct metric_action actions[METRIC_ACTION_MAX]; /**< all actions of the metric */ -- cgit v1.2.3