mirror of
https://github.com/chaos-zhu/easynode.git
synced 2026-10-07 16:48:04 +08:00
feat: 调整状态推送
This commit is contained in:
@@ -1027,9 +1027,9 @@ module.exports = (httpServer) => {
|
||||
collectData()
|
||||
|
||||
// 每n秒收集一次数据
|
||||
monitorTimer = setInterval(collectData, 2500)
|
||||
monitorTimer = setInterval(collectData, 2000)
|
||||
// 每n秒发送一次数据
|
||||
sendDataTimer = setInterval(sendData, 2000)
|
||||
sendDataTimer = setInterval(sendData, 1500)
|
||||
}
|
||||
|
||||
socket.on('disconnect', (reason) => {
|
||||
|
||||
Reference in New Issue
Block a user