@cryptotaxi247 / netdata-1 / commits / e411e349e

when syncing selection, update all charts asap

Costa Tsaousis (ktsaou) committed Oct 29, 2017 at 00:54 UTC e411e349ed6c4341db17ea45394a433cf23c40d0
1 file changed +3 -5
web/dashboard.js
+3 -5
@@ -364,8 +364,6 @@ var NETDATA = window.NETDATA || {};
364
365 smooth_plot: (isSlowDevice() === false), // enable smooth plot, where possible
366
367 - charts_selection_animation_delay: 50, // delay to animate charts when syncing selection
368 -
367 color_fill_opacity_line: 1.0,
368 color_fill_opacity_area: 0.2,
369 color_fill_opacity_stacked: 0.8,
@@ -1986,7 +1984,7 @@ var NETDATA = window.NETDATA || {};
1984 if (this.timeout_id !== null)
1985 clearTimeout(this.timeout_id);
1986
1989 - this.timeout_id = setTimeout(this.__syncSlaves, 5);
1987 + this.timeout_id = setTimeout(this.__syncSlaves, 0);
1988 }
1989 }
1990 };
@@ -6227,7 +6225,7 @@ var NETDATA = window.NETDATA || {};
6225 state.tmp.easyPieChartEvent.timer = setTimeout(function() {
6226 state.tmp.easyPieChartEvent.timer = undefined;
6227 state.tmp.easyPieChart_instance.update(state.tmp.easyPieChartEvent.pcent);
6230 - }, NETDATA.options.current.charts_selection_animation_delay);
6228 + }, 0);
6229 }
6230
6231 return true;
@@ -6508,7 +6506,7 @@ var NETDATA = window.NETDATA || {};
6506 state.tmp.gaugeEvent.timer = setTimeout(function() {
6507 state.tmp.gaugeEvent.timer = undefined;
6508 NETDATA.gaugeSet(state, state.tmp.gaugeEvent.value, state.tmp.gaugeEvent.min, state.tmp.gaugeEvent.max);
6511 - }, NETDATA.options.current.charts_selection_animation_delay);
6509 + }, 0);
6510 }
6511
6512 return true;