summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 20ef655)
raw | patch | inline | side by side (parent: 20ef655)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 24 Nov 2011 14:26:30 +0000 (14:26 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 24 Nov 2011 14:26:30 +0000 (14:26 +0000) |
program/src/rrd_graph.c | patch | blob | history |
index 45218bc0b722093a1c54f369e0de2c23d55c3360..dbd8b3e9ce4b7bc7b2e69af0c9dc4de7b3002575 100644 (file)
--- a/program/src/rrd_graph.c
+++ b/program/src/rrd_graph.c
return -1;
}
im->gdes[i].data_first = 1;
-
+
+ /* must reduce to at least im->step
+ otherwhise we end up with more data than we can handle in the
+ chart and visibility of data will be random */
+ im->gdes[i].step = max(im->gdes[i].step,im->step);
+
if (ft_step < im->gdes[i].step) {
reduce_data(im->gdes[i].cf_reduce,
ft_step,