From 0911423c4f7b53bade59aabccb14d31e217b76cb Mon Sep 17 00:00:00 2001 From: oetiker Date: Thu, 24 Nov 2011 14:26:30 +0000 Subject: [PATCH] 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.3@2221 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_graph.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index b9d95475..d90a02e9 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -855,6 +855,10 @@ int data_fetch( } 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, -- 2.30.2