From f88a700601887e642e7dde16da5934071e5a1dc5 Mon Sep 17 00:00:00 2001 From: Arno Date: Thu, 22 Aug 2019 09:16:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=BB=98=E8=AE=A4=E7=9B=91?= =?UTF-8?q?=E6=8E=A7=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/src/main/resources/templates/node/welcome.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/server/src/main/resources/templates/node/welcome.html b/modules/server/src/main/resources/templates/node/welcome.html index 37ebc3fa5..ae4589bdd 100644 --- a/modules/server/src/main/resources/templates/node/welcome.html +++ b/modules/server/src/main/resources/templates/node/welcome.html @@ -129,6 +129,11 @@ xAxisData.splice(0, 1); xAxisData.push(topData.time); } + if (cpuItem.data[0] === 0) { + cpuItem.data.splice(0, 1); + diskItem.data.splice(0, 1); + memoryItem.data.splice(0, 1); + } let newSeries = [cpuItem, memoryItem, diskItem]; loadEcharts(xAxisData, newSeries); }