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 },