X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpf.c;h=a52bc9e4ac2d8ed4dbc99c5d0783bcc722cf2f15;hb=9a964d704b369e2cd165341fab754879c3f647f8;hp=c98f210035a7f6cb6df3afff24ea14b88951e72b;hpb=dc5ba2fae52307d01291a15d3b329e0f85fb0538;p=collectd.git 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));