X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftape.c;h=a8e7dc45faab08bdf18ffd42fbebd242f3f3477f;hb=7cea19815ba24735e91dde1c08a889960b299b62;hp=5b5cdb4641d9d176599e689c195d8d36d923b113;hpb=7746d34c8ecc4fa984187cf2b1a93d1b6d3a061b;p=collectd.git diff --git a/src/tape.c b/src/tape.c index 5b5cdb46..a8e7dc45 100644 --- 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, - counter_t read, counter_t write) + derive_t read, derive_t write) { 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.time = time (NULL); sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "tape", sizeof (vl.plugin)); - strncpy (vl.plugin_instance, plugin_instance, + sstrncpy (vl.plugin_instance, 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)