diff --git a/src/store/index.ts b/src/store/index.ts index 368aa9c..d3be3dc 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -92,7 +92,10 @@ export const store = createStore({ dispatch(ACTIONS.fetchOnlineData); - setInterval(() => dispatch(ACTIONS.fetchOnlineData), 30000); + + const randIntervalTime = Math.floor(Math.random() * 5000) + 25000; + + setInterval(() => dispatch(ACTIONS.fetchOnlineData), randIntervalTime); }, async fetchOnlineData({ commit, dispatch }) {