From: Markus Knetschke Date: Sun, 23 Dec 2012 10:50:22 +0000 (+0100) Subject: thermal plugin: set the hostname X-Git-Tag: collectd-4.10.9~3 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7df90f7adea4acfddcc10a3b671130aae81265ae;p=collectd.git thermal plugin: set the hostname Signed-off-by: Markus Knetschke Signed-off-by: Florian Forster --- diff --git a/src/thermal.c b/src/thermal.c index 6cbe69e3..5d3da892 100644 --- a/src/thermal.c +++ b/src/thermal.c @@ -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));