From c5303c978bd0a121bf999d035c21847e64f698c1 Mon Sep 17 00:00:00 2001 From: Stefan Rinkes Date: Sun, 17 Apr 2011 10:07:06 +0200 Subject: [PATCH] pf plugin: split up in GAUGE and COUNTER --- src/pf.c | 2 +- src/types.db | 8 ++++---- types.pfrules.db | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/pf.c b/src/pf.c index 976b32f8..7c677bf6 100644 --- a/src/pf.c +++ b/src/pf.c @@ -28,7 +28,7 @@ submit_counter(const char *type, const char *inst, counter_t val) value_t values[1]; value_list_t vl = VALUE_LIST_INIT; - values[0].gauge = val; + values[0].counter = val; vl.values = values; vl.values_len = 1; diff --git a/src/types.db b/src/types.db index bfd349f9..f073449f 100644 --- a/src/types.db +++ b/src/types.db @@ -1,4 +1,4 @@ -pf_counters value:GAUGE:U:U -pf_limits value:GAUGE:U:U -pf_state value:GAUGE:U:U -pf_source value:GAUGE:U:U +pf_counters value:COUNTER:0:U +pf_limits value:COUNTER:0:U +pf_state value:COUNTER:0:U +pf_source value:COUNTER:0:U diff --git a/types.pfrules.db b/types.pfrules.db index e405567b..2006a878 100644 --- a/types.pfrules.db +++ b/types.pfrules.db @@ -1,4 +1,4 @@ -states_cur value:GAUGE:U:U -states_tot value:GAUGE:U:U -evaluations value:GAUGE:U:U -bytes value:GAUGE:U:U +states_cur value:GAUGE:0:U +states_tot value:COUNTER:0:U +evaluations value:COUNTER:0:U +pf_bytes value:COUNTER:0:U -- 2.30.2