From 5f1697ad062ba9bc70de27b5e8a90a7470543666 Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 21 Dec 2010 16:38:22 +0000 Subject: [PATCH] =?utf8?q?=20Sigma=20calculation=20had=20an=20error.=20The?= =?utf8?q?=20first=20data=20value=20in=20each=20bin=20didn't=20get=20squar?= =?utf8?q?ed.=20--=20Hans=20J=C3=B8rgen=20Jakobsen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4@2154 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 2c4c722e..6a220260 100644 --- a/program/src/rrd_fetch_libdbi.c +++ b/program/src/rrd_fetch_libdbi.c @@ -615,7 +615,7 @@ rrd_fetch_fn_libdbi( (*data)[idx*(*ds_cnt)+1]=r_value; /* AVG */ (*data)[idx*(*ds_cnt)+2]=r_value; /* MAX */ (*data)[idx*(*ds_cnt)+3]=1; /* COUNT */ - (*data)[idx*(*ds_cnt)+4]=r_value; /* SIGMA */ + (*data)[idx*(*ds_cnt)+4]=r_value*r_value; /* SIGMA */ } else { /* MIN */ if ((*data)[idx*(*ds_cnt)+0]>r_value) { (*data)[idx*(*ds_cnt)+0]=r_value; } -- 2.30.2