From a25094ff2cb5cbdf2dd3a8d80631a54108619eaa Mon Sep 17 00:00:00 2001 From: Shay Nehmad Date: Tue, 19 Nov 2019 19:30:43 +0200 Subject: [PATCH] Updated the refresh intervals to lower server load. Less auto refreshing for higher responsiveness. --- monkey/monkey_island/cc/ui/src/components/Main.js | 2 +- .../cc/ui/src/components/pages/ZeroTrustReportPage.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/ui/src/components/Main.js b/monkey/monkey_island/cc/ui/src/components/Main.js index 9f4b18bc8..0301ff4f0 100644 --- a/monkey/monkey_island/cc/ui/src/components/Main.js +++ b/monkey/monkey_island/cc/ui/src/components/Main.js @@ -103,7 +103,7 @@ class AppComponent extends AuthComponent { componentDidMount() { this.updateStatus(); - this.interval = setInterval(this.updateStatus, 5000); + this.interval = setInterval(this.updateStatus, 10000); } componentWillUnmount() { diff --git a/monkey/monkey_island/cc/ui/src/components/pages/ZeroTrustReportPage.js b/monkey/monkey_island/cc/ui/src/components/pages/ZeroTrustReportPage.js index 02502ee39..2b2200c86 100755 --- a/monkey/monkey_island/cc/ui/src/components/pages/ZeroTrustReportPage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/ZeroTrustReportPage.js @@ -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} )