From 7df90f7adea4acfddcc10a3b671130aae81265ae Mon Sep 17 00:00:00 2001 From: Markus Knetschke Date: Sun, 23 Dec 2012 11:50:22 +0100 Subject: [PATCH] thermal plugin: set the hostname Signed-off-by: Markus Knetschke Signed-off-by: Florian Forster --- src/thermal.c | 1 + 1 file changed, 1 insertion(+) 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)); -- 2.30.2