X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fserial.c;h=cfa26bbd120b268cefea5d90669bd58917d3bb82;hb=8eb9e6285f394569d7fe6ad43a0f4e5f9bca454f;hp=4f08a346eb542fee24e84d3f4918fcc73552a4fb;hpb=7746d34c8ecc4fa984187cf2b1a93d1b6d3a061b;p=collectd.git diff --git a/src/serial.c b/src/serial.c index 4f08a346..cfa26bbd 100644 --- a/src/serial.c +++ b/src/serial.c @@ -40,13 +40,13 @@ static void serial_submit (const char *type_instance, vl.values = values; vl.values_len = 2; - vl.time = time (NULL); sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "serial", sizeof (vl.plugin)); - strncpy (vl.type_instance, type_instance, + sstrncpy (vl.type, "serial_octets", sizeof (vl.type)); + sstrncpy (vl.type_instance, type_instance, sizeof (vl.type_instance)); - plugin_dispatch_values ("serial_octets", &vl); + plugin_dispatch_values (&vl); } static int serial_read (void)