From: oetiker Date: Mon, 3 Aug 2009 18:45:04 +0000 (+0000) Subject: Show the index of each data source in the rrd_info output. Patch for #231 provided... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=61d6b0a497bba944becc7909f1dff28e4b727a1f;p=rrdtool-all.git Show the index of each data source in the rrd_info output. Patch for #231 provided by unknown person. git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@1877 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_info.c b/program/src/rrd_info.c index 2896d5ca..6627087f 100644 --- a/program/src/rrd_info.c +++ b/program/src/rrd_info.c @@ -110,6 +110,9 @@ rrd_info_r(char *filename) { for(i=0;ids_cnt;i++){ + info.u_cnt=i; + cd=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=info_push(cd,sprintf_alloc("ds[%s].type", rrd.ds_def[i].ds_nam), RD_I_STR, info);