From: Florian Forster Date: Thu, 9 Sep 2010 07:52:13 +0000 (+0200) Subject: src/dp_rrdtool.c: Check for "ds[].type" rather than "ds[].index". X-Git-Tag: v4.0.0~32 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9236b0d021500dbc36363f7280fe3056b06cb9e9;p=collection4.git src/dp_rrdtool.c: Check for "ds[].type" rather than "ds[].index". --- diff --git a/src/dp_rrdtool.c b/src/dp_rrdtool.c index 61fd058..d7ad5ba 100644 --- 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);