From dbbc4599cfb399e5b02392a315e880251483a57c Mon Sep 17 00:00:00 2001 From: Shikong <919411476@qq.com> Date: Wed, 19 Jul 2023 18:34:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E7=BB=9C=E7=8A=B6=E6=80=81=20?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/wails/frontend/src/utils/system/network.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/wails/frontend/src/utils/system/network.ts b/app/wails/frontend/src/utils/system/network.ts index e8fe498..7330aad 100644 --- a/app/wails/frontend/src/utils/system/network.ts +++ b/app/wails/frontend/src/utils/system/network.ts @@ -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] })