X-Git-Url: https://git.tokkee.org/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_graph.c;h=3f8ee1bff143af2dc004eb0e83ffaac4200b8e9f;hp=d7781f6dec454edd7b6b9d19a8784d6801c1713d;hb=0993ad690db2a221cfbcb9b908dc80d950a802f9;hpb=99c0a75308d5e146f73755cdd6624ca87beb0ee1 diff --git a/src/rrd_graph.c b/src/rrd_graph.c index d7781f6..3f8ee1b 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -896,11 +896,15 @@ int data_fetch( &im->gdes[i].ds_cnt, &im->gdes[i].ds_namv, &im->gdes[i].data)) == -1) { - return -1; - } + 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,