From 66f6710318f7ceffdf9ea1518bbde21f9853662f Mon Sep 17 00:00:00 2001 From: denz Date: Fri, 22 Jul 2016 11:05:10 +0900 Subject: [PATCH] add re-request delay time if server 5xx error occurred when use realtime scatter chart api --- .../big-scatter-chart/BigScatterChart2.DataLoadManager.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/main/webapp/components/big-scatter-chart/BigScatterChart2.DataLoadManager.js b/web/src/main/webapp/components/big-scatter-chart/BigScatterChart2.DataLoadManager.js index 4cc51b94c44d..1c7147db0578 100644 --- a/web/src/main/webapp/components/big-scatter-chart/BigScatterChart2.DataLoadManager.js +++ b/web/src/main/webapp/components/big-scatter-chart/BigScatterChart2.DataLoadManager.js @@ -79,7 +79,9 @@ self._cbLoaded( self._oSCManager.getX(), self._nextFrom, self._nextTo ); } }).fail(function() { - self.loadRealtimeData( callbackRealtimeSuccess, callbackRealtimeFail, widthOfPixel, heightOfPixel ); + setTimeout( function() { + self.loadRealtimeData(callbackRealtimeSuccess, callbackRealtimeFail, widthOfPixel, heightOfPixel); + }, self.option( "realtimeInterval" ) ); }); }; DataLoadManager.prototype._isResetRealtime = function( currentServerTime ) {