summaryrefslogtreecommitdiffstats
path: root/filter.h
diff options
context:
space:
mode:
Diffstat (limited to 'filter.h')
-rw-r--r--filter.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/filter.h b/filter.h
index 9f0a96da9..d7f494dc6 100644
--- a/filter.h
+++ b/filter.h
@@ -11,7 +11,7 @@
struct worker_task;
-typedef int (*metric_cons_func)(struct worker_task *task, const char *metric_name);
+typedef double (*metric_cons_func)(struct worker_task *task, const char *metric_name);
typedef void (*filter_func)(struct worker_task *task);
enum filter_type { C_FILTER, PERL_FILTER };
@@ -37,11 +37,12 @@ struct filter_result {
struct metric_result {
struct metric *metric;
+ double score;
LIST_HEAD (resultq, filter_result) results;
};
int process_filters (struct worker_task *task);
void insert_result (struct worker_task *task, const char *metric_name, const char *symbol, u_char flag);
-int factor_consolidation_func (struct worker_task *task, const char *metric_name);
+double factor_consolidation_func (struct worker_task *task, const char *metric_name);
#endif