From: Stefan Rinkes Date: Thu, 14 Apr 2011 19:59:40 +0000 (+0200) Subject: pf plugin: pf values are GAUGE Part II X-Git-Tag: collectd-5.2.0~12^2~26 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9a964d704b369e2cd165341fab754879c3f647f8;p=collectd.git pf plugin: pf values are GAUGE Part II --- diff --git a/src/pf.c b/src/pf.c index c98f2100..a52bc9e4 100644 --- a/src/pf.c +++ b/src/pf.c @@ -60,10 +60,10 @@ submit_counter(const char *type, const char *inst, counter_t val) value_t values[1]; value_list_t vl = VALUE_LIST_INIT; - values[0].counter = val; + values[0].gauge = val; + vl.values = values; vl.values_len = 1; - sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "pf", sizeof (vl.plugin)); sstrncpy (vl.type, type, sizeof(vl.type));