summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 45e8b2d)
raw | patch | inline | side by side (parent: 45e8b2d)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 21 Dec 2010 16:38:22 +0000 (16:38 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 21 Dec 2010 16:38:22 +0000 (16:38 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2154 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_fetch_libdbi.c | patch | blob | history |
diff --git a/src/rrd_fetch_libdbi.c b/src/rrd_fetch_libdbi.c
index 2c4c722ee46ecbbbd8d95ece84c8deb8c4899d5a..6a220260463324d5d60c7af9bdbe1984210233a4 100644 (file)
--- a/src/rrd_fetch_libdbi.c
+++ b/src/rrd_fetch_libdbi.c
(*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; }