From d3a7ab8fc1a4acd9e600e6cdaae21635f3cc8593 Mon Sep 17 00:00:00 2001 From: proddy Date: Fri, 16 Aug 2024 13:48:05 +0200 Subject: [PATCH] formatting --- interface/src/app/status/RestartMonitor.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/interface/src/app/status/RestartMonitor.tsx b/interface/src/app/status/RestartMonitor.tsx index a8cb12774..ba358af4a 100644 --- a/interface/src/app/status/RestartMonitor.tsx +++ b/interface/src/app/status/RestartMonitor.tsx @@ -7,15 +7,16 @@ import { FormLoader } from 'components'; import { useI18nContext } from 'i18n/i18n-react'; const RESTART_TIMEOUT = 2 * 60 * 1000; -const POLL_INTERVAL = 3000; +const POLL_INTERVAL = 1000; const RestartMonitor = () => { const [failed, setFailed] = useState(false); const [timeoutId, setTimeoutId] = useState(); const { LL } = useI18nContext(); - const { send } = useRequest(SystemApi.readSystemStatus); const timeoutAt = useRef(new Date().getTime() + RESTART_TIMEOUT); + const { send } = useRequest(SystemApi.readSystemStatus); + const poll = useRef(async () => { try { await send();