thermal plugin: set the hostname
authorMarkus Knetschke <markus.knetschke@gmail.com>
Sun, 23 Dec 2012 10:50:22 +0000 (11:50 +0100)
committerFlorian Forster <octo@collectd.org>
Wed, 27 Mar 2013 22:57:21 +0000 (23:57 +0100)
Signed-off-by: Markus Knetschke <markus.knetschke@gmail.com>
Signed-off-by: Florian Forster <octo@collectd.org>
src/thermal.c

index 6cbe69e..5d3da89 100644 (file)
@@ -53,6 +53,7 @@ static void thermal_submit (const char *plugin_instance, enum dev_type dt,
        vl.values = &vt;
        vl.values_len = 1;
 
+       sstrncpy (vl.host, hostname_g, sizeof (vl.host));
        sstrncpy (vl.plugin, "thermal", sizeof(vl.plugin));
        sstrncpy (vl.plugin_instance, plugin_instance,
                        sizeof(vl.plugin_instance));