projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
curl plugin: correct error message
[collectd.git]
/
src
/
tape.c
diff --git
a/src/tape.c
b/src/tape.c
index
5b5cdb4
..
a8e7dc4
100644
(file)
--- a/
src/tape.c
+++ b/
src/tape.c
@@
-58,23
+58,23
@@
static int tape_init (void)
static void tape_submit (const char *plugin_instance,
const char *type,
static void tape_submit (const char *plugin_instance,
const char *type,
-
counter_t read, counter
_t write)
+
derive_t read, derive
_t write)
{
value_t values[2];
value_list_t vl = VALUE_LIST_INIT;
{
value_t values[2];
value_list_t vl = VALUE_LIST_INIT;
- values[0].
counter
= read;
- values[1].
counter
= write;
+ values[0].
derive
= read;
+ values[1].
derive
= write;
vl.values = values;
vl.values_len = 2;
vl.values = values;
vl.values_len = 2;
- vl.time = time (NULL);
sstrncpy (vl.host, hostname_g, sizeof (vl.host));
sstrncpy (vl.plugin, "tape", sizeof (vl.plugin));
sstrncpy (vl.host, hostname_g, sizeof (vl.host));
sstrncpy (vl.plugin, "tape", sizeof (vl.plugin));
- strncpy (vl.plugin_instance, plugin_instance,
+ s
s
trncpy (vl.plugin_instance, plugin_instance,
sizeof (vl.plugin_instance));
sizeof (vl.plugin_instance));
+ sstrncpy (vl.type, type, sizeof (vl.type));
- plugin_dispatch_values (
type,
&vl);
+ plugin_dispatch_values (&vl);
} /* void tape_submit */
static int tape_read (void)
} /* void tape_submit */
static int tape_read (void)