projects
/
collection4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17568ea
)
src/dp_rrdtool.c: Check for "ds[].type" rather than "ds[].index".
author
Florian Forster
<octo@verplant.org>
Thu, 9 Sep 2010 07:52:13 +0000
(09:52 +0200)
committer
Florian Forster
<octo@verplant.org>
Thu, 9 Sep 2010 07:52:13 +0000
(09:52 +0200)
src/dp_rrdtool.c
patch
|
blob
|
history
diff --git
a/src/dp_rrdtool.c
b/src/dp_rrdtool.c
index
61fd058
..
d7ad5ba
100644
(file)
--- a/
src/dp_rrdtool.c
+++ b/
src/dp_rrdtool.c
@@
-244,13
+244,13
@@
static int get_ident_ds_names (void *priv, graph_ident_t *ident,
continue;
keylen = strlen (ptr->key);
- if (keylen < strlen ("ds[?].
index
"))
+ if (keylen < strlen ("ds[?].
type
"))
continue;
- dslen = keylen - strlen ("ds[].
index
");
+ dslen = keylen - strlen ("ds[].
type
");
assert (dslen >= 1);
- if (strcmp ("].
index
", ptr->key + (strlen ("ds[") + dslen)) != 0)
+ if (strcmp ("].
type
", ptr->key + (strlen ("ds[") + dslen)) != 0)
continue;
ds = malloc (dslen + 1);