From: oetiker Date: Thu, 24 Nov 2011 14:26:30 +0000 (+0000) Subject: after fetching, data must be reduced to at least chart resolution, else some data... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fb5e2f600bbb33cb74922da9645ccaab4ef15f27;p=rrdtool.git after fetching, data must be reduced to at least chart resolution, else some data will not get plotted. fix for #298 git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@2221 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 45218bc..dbd8b3e 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -744,7 +744,12 @@ data_fetch(image_desc_t *im ) 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,