Code

pf plugin: pf values are GAUGE Part II
[collectd.git] / src / pf.c
index c98f210035a7f6cb6df3afff24ea14b88951e72b..a52bc9e4ac2d8ed4dbc99c5d0783bcc722cf2f15 100644 (file)
--- 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));