Skip to content

Commit

Permalink
Have the UI fully update immediately after new data update. Debounce …
Browse files Browse the repository at this point in the history
…the Mongo loading for 5 seconds after data has been updated (#4189)
  • Loading branch information
sulkaharo authored Jan 12, 2019
1 parent 3ec9664 commit 2da377d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1154,10 +1154,9 @@ client.load = function load(serverSettings, callback) {
} else if (!inRetroMode()) {
chart.update(false);
client.plugins.updateVisualisations(client.nowSBX);
brushed();
}

}

};

module.exports = client;
2 changes: 1 addition & 1 deletion lib/server/bootevent.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var _ = require('lodash');

var UPDATE_THROTTLE = 1000;
var UPDATE_THROTTLE = 5000;

function boot (env, language) {

Expand Down

0 comments on commit 2da377d

Please sign in to comment.