Introduce two global variables: `hostname_g' and `interval_g'.
[collectd.git] / src / serial.c
index 6ca752c..8f8e433 100644 (file)
@@ -55,7 +55,7 @@ static void serial_submit (const char *type_instance,
        vl.values = values;
        vl.values_len = 2;
        vl.time = time (NULL);
-       strcpy (vl.host, hostname);
+       strcpy (vl.host, hostname_g);
        strcpy (vl.plugin, "serial");
        strncpy (vl.type_instance, type_instance,
                        sizeof (vl.type_instance));