projects
/
collection4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4c851c
)
src/common.c: Fix "ds_list_from_rrd_file".
author
Florian Forster
<octo@verplant.org>
Thu, 9 Sep 2010 12:29:24 +0000
(14:29 +0200)
committer
Florian Forster
<octo@verplant.org>
Thu, 9 Sep 2010 12:29:24 +0000
(14:29 +0200)
src/common.c
patch
|
blob
|
history
diff --git
a/src/common.c
b/src/common.c
index
2a5bf45
..
9a2196b
100644
(file)
--- a/
src/common.c
+++ b/
src/common.c
@@
-101,13
+101,13
@@
int ds_list_from_rrd_file (char *file, /* {{{ */
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);