Code

fixed data pointer storage
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sat, 2 Feb 2002 14:36:14 +0000 (14:36 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sat, 2 Feb 2002 14:36:14 +0000 (14:36 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@75 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_graph.c

index 0f6f588ebdf0a8fda09052587b97b5ab1762817a..f4ad81a74b16647f90557a498a05571d18eb7b42 100644 (file)
@@ -803,7 +803,7 @@ printf("DEBUG: value from vdef is %f\n",im->gdes[ptr].vf.val);
                             * further save step size and data source
                             * count of this rra
                             */ 
-                           im->gdes[gdi].rpnp[rpi].data = im->gdes[ptr].data; 
+                            im->gdes[gdi].rpnp[rpi].data =  im->gdes[ptr].data + im->gdes[ptr].ds;
                            im->gdes[gdi].rpnp[rpi].step = im->gdes[ptr].step;
                            im->gdes[gdi].rpnp[rpi].ds_cnt = im->gdes[ptr].ds_cnt;