Tree wide: Don't set vl.host to hostname_g in plugin code.
[collectd.git] / src / cpu.c
index fbd0714..424a5b5 100644 (file)
--- a/src/cpu.c
+++ b/src/cpu.c
@@ -330,7 +330,6 @@ static void submit_value (int cpu_num, int cpu_state, const char *type, value_t
        vl.values = &value;
        vl.values_len = 1;
 
-       sstrncpy (vl.host, hostname_g, sizeof (vl.host));
        sstrncpy (vl.plugin, "cpu", sizeof (vl.plugin));
        sstrncpy (vl.type, type, sizeof (vl.type));
        sstrncpy (vl.type_instance, cpu_state_names[cpu_state],
@@ -464,7 +463,6 @@ static void cpu_commit_num_cpu (gauge_t value) /* {{{ */
        vl.values = &(value_t) { .gauge = value };
        vl.values_len = 1;
 
-       sstrncpy (vl.host, hostname_g, sizeof (vl.host));
        sstrncpy (vl.plugin, "cpu", sizeof (vl.plugin));
        sstrncpy (vl.type, "count", sizeof (vl.type));