From 878c51117ce291fba659de297f2f4caaa0272f18 Mon Sep 17 00:00:00 2001 From: oetiker Date: Wed, 20 Mar 2002 22:48:25 +0000 Subject: [PATCH] fixed longstanding bug affection CDEFS where values from rrds with different resolutions got mixed .. git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@97 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_rpncalc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rrd_rpncalc.c b/src/rrd_rpncalc.c index c174370..ab2bd36 100644 --- a/src/rrd_rpncalc.c +++ b/src/rrd_rpncalc.c @@ -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: -- 2.11.0