网络状态 初始化修正
This commit is contained in:
parent
b4441bcdfb
commit
dbbc4599cf
@ -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]
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user