Code

fixed longstanding bug affection CDEFS where values from
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Wed, 20 Mar 2002 22:48:25 +0000 (22:48 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Wed, 20 Mar 2002 22:48:25 +0000 (22:48 +0000)
rrds with different resolutions got mixed ..

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@97 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_rpncalc.c

index c174370b284ccb48e65b890476aa30f6be74ea76..ab2bd36ca909797973d37ac864189a2b5b214e88 100644 (file)
@@ -397,10 +397,10 @@ rpn_calc(rpnp_t *rpnp, rpnstack_t *rpnstack, long data_idx,
                     * row in the rra (skip over non-relevant
                     * data sources)
                     */
+                   rpnstack -> s[++stptr] =  *(rpnp[rpi].data);
                    if (data_idx % rpnp[rpi].step == 0){
                        rpnp[rpi].data += rpnp[rpi].ds_cnt;
                    }
-                   rpnstack -> s[++stptr] =  *(rpnp[rpi].data);
                }
                break;
            case OP_PREV: