mirror of
https://github.com/woodchen-ink/proxy-go.git
synced 2025-07-18 08:31:55 +08:00
优化仪表板页面的指标获取频率,将定时器间隔从1000毫秒调整为3000毫秒,以减少请求频率并提高性能。
This commit is contained in:
parent
e98b2c3efe
commit
9c2bc25bfa
@ -98,7 +98,7 @@ export default function DashboardPage() {
|
||||
|
||||
useEffect(() => {
|
||||
fetchMetrics()
|
||||
const interval = setInterval(fetchMetrics, 1000)
|
||||
const interval = setInterval(fetchMetrics, 3000)
|
||||
return () => clearInterval(interval)
|
||||
}, [fetchMetrics])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user