Merge pull request #193 from guardicore/hotfix/increase-ui-intervals

Increased all intervals in UI code to 5 seconds
This commit is contained in:
itaymmguardicore 2018-10-10 20:21:38 +03:00 committed by GitHub
commit d84950baef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

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

View File

@ -27,7 +27,7 @@ class MapPageComponent extends AuthComponent {
componentDidMount() {
this.updateMapFromServer();
this.interval = setInterval(this.timedEvents, 1000);
this.interval = setInterval(this.timedEvents, 5000);
}
componentWillUnmount() {

View File

@ -48,7 +48,7 @@ class ReportPageComponent extends AuthComponent {
componentDidMount() {
this.updateMonkeysRunning().then(res => this.getReportFromServer(res));
this.updateMapFromServer();
this.interval = setInterval(this.updateMapFromServer, 1000);
this.interval = setInterval(this.updateMapFromServer, 5000);
}
componentWillUnmount() {