From b50a3f4b4e00c67dff71dd0a8b83ab7bf7bc29ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Thu, 17 Oct 2024 01:13:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A6=96=E9=A1=B5=E7=9B=91=E6=8E=A7?= =?UTF-8?q?=E9=BB=98=E8=AE=A410=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/home/IndexView.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/web/src/views/home/IndexView.vue b/web/src/views/home/IndexView.vue index c03de4da..026be83b 100644 --- a/web/src/views/home/IndexView.vue +++ b/web/src/views/home/IndexView.vue @@ -213,27 +213,27 @@ const fetchCurrent = async () => { // 图表数据填充 netBytesSent.value.push(calculateSize(current.netBytesSent)) - if (netBytesSent.value.length > 20) { + if (netBytesSent.value.length > 10) { netBytesSent.value.splice(0, 1) } netBytesRecv.value.push(calculateSize(current.netBytesRecv)) - if (netBytesRecv.value.length > 20) { + if (netBytesRecv.value.length > 10) { netBytesRecv.value.splice(0, 1) } diskReadBytes.value.push(calculateSize(current.diskReadBytes)) - if (diskReadBytes.value.length > 20) { + if (diskReadBytes.value.length > 10) { diskReadBytes.value.splice(0, 1) } diskWriteBytes.value.push(calculateSize(current.diskWriteBytes)) - if (diskWriteBytes.value.length > 20) { + if (diskWriteBytes.value.length > 10) { diskWriteBytes.value.splice(0, 1) } timeDiskData.value.push(formatDateTime(data.time)) - if (timeDiskData.value.length > 20) { + if (timeDiskData.value.length > 10) { timeDiskData.value.splice(0, 1) } timeNetData.value.push(formatDateTime(data.time)) - if (timeNetData.value.length > 20) { + if (timeNetData.value.length > 10) { timeNetData.value.splice(0, 1) }