From a10e8315628fd9743c861748e94621cf546b630f Mon Sep 17 00:00:00 2001 From: oetiker Date: Fri, 7 Nov 2008 22:23:16 +0000 Subject: [PATCH] fix scaling issue -- Martin git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1652 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_fetch_libdbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/src/rrd_fetch_libdbi.c b/program/src/rrd_fetch_libdbi.c index c7710260..7cde3f10 100644 --- a/program/src/rrd_fetch_libdbi.c +++ b/program/src/rrd_fetch_libdbi.c @@ -524,7 +524,7 @@ rrd_fetch_fn_libdbi( } (*data)[idx*(*ds_cnt)+4]=r_value; /* now the average */ - (*data)[idx*(*ds_cnt)+1]/=i; + (*data)[idx*(*ds_cnt)+1]/=count; } } -- 2.30.2