From: Markus Knetschke Date: Sun, 23 Dec 2012 10:02:42 +0000 (+0100) Subject: thermal plugin: fixed value submitting X-Git-Tag: collectd-4.10.9~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2c70797b18c2b532119b1264841f551e013dcad;p=thirdparty%2Fcollectd.git thermal plugin: fixed value submitting Signed-off-by: Markus Knetschke Signed-off-by: Florian Forster --- diff --git a/src/thermal.c b/src/thermal.c index b9d07bf5c..6cbe69e35 100644 --- a/src/thermal.c +++ b/src/thermal.c @@ -51,6 +51,8 @@ static void thermal_submit (const char *plugin_instance, enum dev_type dt, vt.gauge = value; vl.values = &vt; + vl.values_len = 1; + sstrncpy (vl.plugin, "thermal", sizeof(vl.plugin)); sstrncpy (vl.plugin_instance, plugin_instance, sizeof(vl.plugin_instance));