Introduce two global variables: `hostname_g' and `interval_g'.
[collectd.git] / src / apple_sensors.c
index 33660a9..29d5091 100644 (file)
@@ -118,7 +118,7 @@ static void as_submit (const char *type, const char *type_instance,
        vl.values = values;
        vl.values_len = 1;
        vl.time = time (NULL);
-       strcpy (vl.host, hostname);
+       strcpy (vl.host, hostname_g);
        strcpy (vl.plugin, "apple_sensors");
        strcpy (vl.plugin_instance, "");
        strcpy (vl.type_instance, type_instance);