From ed47efc05c9706ea4766b46e81ea0cfde5f9425e Mon Sep 17 00:00:00 2001 From: Manuel Luis SanmartĂ­n Rozada Date: Fri, 1 Aug 2014 00:19:00 +0200 Subject: jsrrdgraph: Fix reduce in DEF --- js/RrdGraph.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js') diff --git a/js/RrdGraph.js b/js/RrdGraph.js index 57adaee..48b9814 100644 --- a/js/RrdGraph.js +++ b/js/RrdGraph.js @@ -1330,7 +1330,7 @@ RrdGraph.prototype.data_fetch_async_callback = function (args, ft_step) if (ft_step < 0) return -1; that.gdes[j].data_first = 1; -// that.gdes[j].step = Math.max(that.gdes[j].step, that.step); // FIXME + that.gdes[j].step = Math.max(that.gdes[j].step, that.step); if (ft_step < that.gdes[j].step) { that.reduce_data(that.gdes[j], ft_step); } else { @@ -1438,7 +1438,7 @@ RrdGraph.prototype.data_fetch = function() if (ft_step < 0) return -1; this.gdes[i].data_first = 1; -// this.gdes[i].step = Math.max(this.gdes[i].step, this.step); // FIXME + this.gdes[i].step = Math.max(this.gdes[i].step, this.step); if (ft_step < this.gdes[i].step) { this.reduce_data(this.gdes[i], ft_step); } else { -- cgit v1.1