projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
processes plugin: ps_list_match: If a regex is configures, only use that regex.
[collectd.git]
/
src
/
ascent.c
diff --git
a/src/ascent.c
b/src/ascent.c
index
94691d6
..
6b4f21f
100644
(file)
--- a/
src/ascent.c
+++ b/
src/ascent.c
@@
-130,10
+130,12
@@
static int ascent_submit_gauge (const char *plugin_instance, /* {{{ */
sstrncpy (vl.plugin_instance, plugin_instance,
sizeof (vl.plugin_instance));
sstrncpy (vl.plugin_instance, plugin_instance,
sizeof (vl.plugin_instance));
+ sstrncpy (vl.type, type, sizeof (vl.type));
+
if (type_instance != NULL)
sstrncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));
if (type_instance != NULL)
sstrncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));
- plugin_dispatch_values (
type,
&vl);
+ plugin_dispatch_values (&vl);
return (0);
} /* }}} int ascent_submit_gauge */
return (0);
} /* }}} int ascent_submit_gauge */
@@
-534,7
+536,7
@@
static int ascent_init (void) /* {{{ */
{
int status;
{
int status;
- status = snprintf (credentials, sizeof (credentials), "%s:%s",
+ status = s
s
nprintf (credentials, sizeof (credentials), "%s:%s",
user, (pass == NULL) ? "" : pass);
if (status >= sizeof (credentials))
{
user, (pass == NULL) ? "" : pass);
if (status >= sizeof (credentials))
{
@@
-542,7
+544,6
@@
static int ascent_init (void) /* {{{ */
"credentials have been truncated.");
return (-1);
}
"credentials have been truncated.");
return (-1);
}
- credentials[sizeof (credentials) - 1] = '\0';
curl_easy_setopt (curl, CURLOPT_USERPWD, credentials);
}
curl_easy_setopt (curl, CURLOPT_USERPWD, credentials);
}