From: Florian Forster Date: Mon, 11 Jan 2010 15:52:48 +0000 (+0100) Subject: curl_xml plugin: Don't use a hyphen to separate instance prefix and value. X-Git-Tag: collectd-4.10.0~72^2~4 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=383f8c0de0e2704a9d03df99b99a9ae7e81e044e;p=collectd.git curl_xml plugin: Don't use a hyphen to separate instance prefix and value. This way the plugin behaves more like the SNMP plugin. --- diff --git a/src/curl_xml.c b/src/curl_xml.c index 74ef2e8e..cc88c934 100644 --- a/src/curl_xml.c +++ b/src/curl_xml.c @@ -402,7 +402,7 @@ static int cx_handle_instance_xpath (xmlXPathContextPtr xpath_ctx, /* {{{ */ if (xpath->instance_prefix != NULL) { if (instance_node != NULL) - ssnprintf (vl->type_instance, sizeof (vl->type_instance),"%s-%s", + ssnprintf (vl->type_instance, sizeof (vl->type_instance),"%s%s", xpath->instance_prefix, (char *) xmlNodeGetContent(instance_node->nodeTab[0])); else sstrncpy (vl->type_instance, xpath->instance_prefix,