From 128bb3097a054080fcd6cbb8337065ee045a6a67 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@97 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_rpncalc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/src/rrd_rpncalc.c b/program/src/rrd_rpncalc.c index c174370b..ab2bd36c 100644 --- a/program/src/rrd_rpncalc.c +++ b/program/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.30.2