Code

Introduce two global variables: `hostname_g' and `interval_g'.
[collectd.git] / src / irq.c
index 6e1f92ec112ed210bc10ff00f51b1f5cb9fa74b0..5826dc3d8fe3db46d44bb258f65ee06773d60e3c 100644 (file)
--- a/src/irq.c
+++ b/src/irq.c
@@ -147,7 +147,7 @@ static void irq_submit (unsigned int irq, counter_t value)
        vl.values = values;
        vl.values_len = 1;
        vl.time = time (NULL);
-       strcpy (vl.host, hostname);
+       strcpy (vl.host, hostname_g);
        strcpy (vl.plugin, "irq");
 
        status = snprintf (vl.type_instance, sizeof (vl.type_instance),