网络状态 初始化修正

This commit is contained in:
Shikong 2023-07-19 18:34:41 +08:00
parent b4441bcdfb
commit dbbc4599cf

View File

@ -23,8 +23,8 @@ function loopNetworkSumCounter(){
clearInterval(network.sumCounter.interval)
function loop(){
GetNetworkCounter(true).then(result=> {
network.sumCounter.rate.recv = result[0].bytesRecv - network.sumCounter.data.bytesRecv
network.sumCounter.rate.sent = result[0].bytesSent - network.sumCounter.data.bytesSent
network.sumCounter.rate.recv = result[0].bytesRecv - (network.sumCounter.data.bytesRecv || 0)
network.sumCounter.rate.sent = result[0].bytesSent - (network.sumCounter.data.bytesSent || 0)
network.sumCounter.data = result[0]
})