summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cb0025e)
raw | patch | inline | side by side (parent: cb0025e)
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) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2221 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_graph.c | patch | blob | history |
diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index 3af1942b743b109f4c16ad9d576783f87612aa76..8c3f8be9d15a462f7089581a3df8a667fe1d75f4 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
}
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,