Introduce two global variables: `hostname_g' and `interval_g'.
[collectd.git] / src / traffic.c
index 5fc55d7..619208c 100644 (file)
@@ -232,7 +232,7 @@ static void if_submit (const char *dev, const char *type,
        vl.values = values;
        vl.values_len = 2;
        vl.time = time (NULL);
-       strcpy (vl.host, hostname);
+       strcpy (vl.host, hostname_g);
        strcpy (vl.plugin, "interface");
        strncpy (vl.type_instance, dev, sizeof (vl.type_instance));