Increased all intervals in UI code to 5 seconds

This commit is contained in:
Itay Mizeretz 2018-10-10 20:19:46 +03:00
parent 2311498ef4
commit 7614170f8d
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() {