Merge pull request #497 from guardicore/hotfix/lower-refresh-intervals

Updated the refresh intervals to lower server load.
This commit is contained in:
Daniel Goldberg 2019-12-02 17:50:26 +02:00 committed by GitHub
commit 10f1282b15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ class AppComponent extends AuthComponent {
componentDidMount() {
this.updateStatus();
this.interval = setInterval(this.updateStatus, 5000);
this.interval = setInterval(this.updateStatus, 10000);
}
componentWillUnmount() {

View File

@ -23,7 +23,7 @@ class ZeroTrustReportPageComponent extends AuthComponent {
componentDidMount() {
this.updatePageState();
const refreshInterval = setInterval(this.updatePageState, 8000);
const refreshInterval = setInterval(this.updatePageState, 60000);
this.setState(
{refreshDataIntervalHandler: refreshInterval}
)