Code

Introduce two global variables: `hostname_g' and `interval_g'.
[collectd.git] / src / df.c
index dd5e13824660c34da87231606029531fed4e99eb..fde5d9ae503692b492286604f561c747350f850a 100644 (file)
--- a/src/df.c
+++ b/src/df.c
@@ -142,7 +142,7 @@ static void df_submit (char *df_name,
        vl.values = values;
        vl.values_len = 2;
        vl.time = time (NULL);
-       strcpy (vl.host, hostname);
+       strcpy (vl.host, hostname_g);
        strcpy (vl.plugin, "df");
        strcpy (vl.plugin_instance, "");
        strncpy (vl.type_instance, df_name, sizeof (vl.type_instance));