X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Frrd_info.c;h=7690b89d6aa2f71cd22d1a072a420262c57d0b65;hb=d9822df7ed5e8122cf3a62e4e99678e94007f504;hp=3ab1b592da1a323594689713a5b1654ed53318dd;hpb=ffa00ac697dccce18dca8880ca7a14066521ac5c;p=pkg-rrdtool.git diff --git a/src/rrd_info.c b/src/rrd_info.c index 3ab1b59..7690b89 100644 --- a/src/rrd_info.c +++ b/src/rrd_info.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.3.2 Copyright by Tobi Oetiker, 1997-2008 + * RRDtool 1.4.8 Copyright by Tobi Oetiker, 1997-2013 ***************************************************************************** * rrd_info Get Information about the configuration of an RRD *****************************************************************************/ @@ -178,6 +178,11 @@ rrd_info_t *rrd_info_r( for (i = 0; i < rrd.stat_head->ds_cnt; i++) { + info.u_cnt=i; + cd= rrd_info_push(cd,sprintf_alloc("ds[%s].index", + rrd.ds_def[i].ds_nam), + RD_I_CNT, info); + info.u_str = rrd.ds_def[i].dst; cd = rrd_info_push(cd, sprintf_alloc("ds[%s].type", rrd.ds_def[i].ds_nam),