From d2b3b94a56ffd1ed25256e40ab3249ac54abeee2 Mon Sep 17 00:00:00 2001 From: CN-JS-HuiBai Date: Sat, 4 Apr 2026 18:52:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=80=BB=E5=B8=A6=E5=AE=BD?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/index.js b/server/index.js index 78bbf48..b637a1f 100644 --- a/server/index.js +++ b/server/index.js @@ -360,7 +360,7 @@ app.get('/api/metrics/overview', async (req, res) => { cpu: { used: 0, total: 0, percent: 0 }, memory: { used: 0, total: 0, percent: 0 }, disk: { used: 0, total: 0, percent: 0 }, - network: { totalBandwidth: 0, rx: 0, tx: 0 }, + network: { total: 0, rx: 0, tx: 0 }, traffic24h: { rx: 0, tx: 0, total: 0 }, servers: [] }); @@ -433,7 +433,7 @@ app.get('/api/metrics/overview', async (req, res) => { percent: diskTotal > 0 ? (diskUsed / diskTotal * 100) : 0 }, network: { - totalBandwidth: netRx + netTx, + total: netRx + netTx, rx: netRx, tx: netTx },