projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d409a21
)
curl_xml plugin: Don't use a hyphen to separate instance prefix and value.
author
Florian Forster
<octo@huhu.verplant.org>
Mon, 11 Jan 2010 15:52:48 +0000
(16:52 +0100)
committer
Florian Forster
<octo@huhu.verplant.org>
Mon, 11 Jan 2010 15:52:48 +0000
(16:52 +0100)
This way the plugin behaves more like the SNMP plugin.
src/curl_xml.c
patch
|
blob
|
history
diff --git
a/src/curl_xml.c
b/src/curl_xml.c
index
74ef2e8
..
cc88c93
100644
(file)
--- 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,