fix scaling issue -- Martin
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Fri, 7 Nov 2008 22:23:16 +0000 (22:23 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Fri, 7 Nov 2008 22:23:16 +0000 (22:23 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1652 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_fetch_libdbi.c

index c771026..7cde3f1 100644 (file)
@@ -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;
     }
   }