Introduce two global variables: `hostname_g' and `interval_g'.
[collectd.git] / src / swap.c
index f03a5a9..8e04044 100644 (file)
@@ -133,7 +133,7 @@ static void swap_submit (const char *type_instance, double value)
        vl.values = values;
        vl.values_len = 1;
        vl.time = time (NULL);
-       strcpy (vl.host, hostname);
+       strcpy (vl.host, hostname_g);
        strcpy (vl.plugin, "swap");
        strncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));