X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fthermal.c;h=603f85bbf6a96595ee04891127f37006d90730aa;hp=0ad0d90a04377126132e35cad77e4d592a844a1d;hb=9cbc0fe63abd2bd3658b42f19ee144f803b658fa;hpb=d21cf7f8376b6ce5dd3bbeb41da3aff0e85c6e28 diff --git a/src/thermal.c b/src/thermal.c index 0ad0d90a..603f85bb 100644 --- a/src/thermal.c +++ b/src/thermal.c @@ -55,6 +55,9 @@ static void thermal_submit (const char *plugin_instance, enum dev_type dt, v.gauge = value; vl.values = &v; + vl.values_len = 1; + + sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "thermal", sizeof(vl.plugin)); if (plugin_instance != NULL) sstrncpy (vl.plugin_instance, plugin_instance,