From 1eac907e8b85494b85c1e49e33598cb21dc007d7 Mon Sep 17 00:00:00 2001 From: Hien To Date: Thu, 25 Jan 2024 17:38:06 +0700 Subject: [PATCH] Increase interval time to get System Resource from 0.5s to 2s --- web/hooks/useGetSystemResources.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/hooks/useGetSystemResources.ts b/web/hooks/useGetSystemResources.ts index d401960fc9..6c70df6636 100644 --- a/web/hooks/useGetSystemResources.ts +++ b/web/hooks/useGetSystemResources.ts @@ -70,12 +70,12 @@ export default function useGetSystemResources() { useEffect(() => { getSystemResources() - // Fetch interval - every 0.5s + // Fetch interval - every 2s // TODO: Will we really need this? // There is a possibility that this will be removed and replaced by the process event hook? const intervalId = setInterval(() => { getSystemResources() - }, 500) + }, 2000) // clean up interval return () => clearInterval(intervalId)