projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc5ba2f
)
pf plugin: pf values are GAUGE Part II
author
Stefan Rinkes
<stefan.rinkes@gmail.com>
Thu, 14 Apr 2011 19:59:40 +0000
(21:59 +0200)
committer
Stefan Rinkes
<stefan.rinkes@gmail.com>
Thu, 14 Apr 2011 19:59:40 +0000
(21:59 +0200)
src/pf.c
patch
|
blob
|
history
diff --git
a/src/pf.c
b/src/pf.c
index
c98f210
..
a52bc9e
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));