Skip to content

Commit

Permalink
Increase interval time to get System Resource from 0.5s to 2s
Browse files Browse the repository at this point in the history
  • Loading branch information
hientominh authored and louis-jan committed Feb 4, 2024
1 parent 32eed2b commit 27a703e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/hooks/useGetSystemResources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 27a703e

Please sign in to comment.