diff --git a/src/serial.c b/src/serial.c
index 4f08a346eb542fee24e84d3f4918fcc73552a4fb..cfa26bbd120b268cefea5d90669bd58917d3bb82 100644 (file)
--- a/src/serial.c
+++ b/src/serial.c
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)