summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 85e490a)
raw | patch | inline | side by side (parent: 85e490a)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 6 Jul 2009 20:47:48 +0000 (22:47 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Fri, 21 Aug 2009 06:41:54 +0000 (08:41 +0200) |
src/http.c | patch | blob | history |
diff --git a/src/http.c b/src/http.c
index 09f9cfdd8bbe8678f33e3b1b4c4e7a67c256e18f..f4ae0ebf55de860c483dfe662b187b7e0e4a086c 100644 (file)
--- a/src/http.c
+++ b/src/http.c
}
/* type (if its the same as plugin, don't bother repeating it */
- if (0 != strcmp (vl->type, vl->plugin))
+ if (0 != strcmp (vl->type, vl->plugin))
{
status = ssnprintf (buffer + offset, buffer_len - offset,
",%s", vl->type);
return -1;
}
- metric_prefix_len = http_value_list_to_metric_name (metric_name,
+ metric_prefix_len = http_value_list_to_metric_name (metric_name,
sizeof (metric_name), ds, vl);
-
+
if (metric_prefix_len == -1)
return (-1);
@@ -358,14 +358,14 @@ static int http_write (const data_set_t *ds, const value_list_t *vl, /* {{{ */
if (http_value_list_to_timestamp (timestamp, sizeof (timestamp), ds, vl) != 0)
return (-1);
- for (i = 0; i < ds->ds_num; i++)
+ for (i = 0; i < ds->ds_num; i++)
{
if (http_value_list_to_string (value, sizeof (value), ds, vl, i) != 0)
return (-1);
ssnprintf(metric_name + metric_prefix_len, sizeof (metric_name) - metric_prefix_len,
- ",%s", ds->ds[i].name);
+ ",%s", ds->ds[i].name);
escape_string (metric_name, sizeof (metric_name));