From: Stefan Rinkes Date: Sun, 17 Apr 2011 08:07:06 +0000 (+0200) Subject: pf plugin: split up in GAUGE and COUNTER X-Git-Tag: collectd-5.2.0~12^2~18 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c5303c978bd0a121bf999d035c21847e64f698c1;p=collectd.git pf plugin: split up in GAUGE and COUNTER --- 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