diff options
Diffstat (limited to 'filter.h')
-rw-r--r-- | filter.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |