summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a20684f)
raw | patch | inline | side by side (parent: a20684f)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 7 Nov 2008 22:23:16 +0000 (22:23 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 7 Nov 2008 22:23:16 +0000 (22:23 +0000) |
src/rrd_fetch_libdbi.c | patch | blob | history |
diff --git a/src/rrd_fetch_libdbi.c b/src/rrd_fetch_libdbi.c
index c7710260950e52ebe15664bce80bfb271b5e752d..7cde3f10af8fd75c0c356250506f942bc8d56e39 100644 (file)
--- a/src/rrd_fetch_libdbi.c
+++ b/src/rrd_fetch_libdbi.c
}
(*data)[idx*(*ds_cnt)+4]=r_value;
/* now the average */
- (*data)[idx*(*ds_cnt)+1]/=i;
+ (*data)[idx*(*ds_cnt)+1]/=count;
}
}