Updated the refresh intervals to lower server load.

Less auto refreshing for higher responsiveness.
This commit is contained in:
Shay Nehmad 2019-11-19 19:30:43 +02:00
parent 7cefba293a
commit a25094ff2c
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}
)