From e0a7ada6d529e33d3b0f1a07fdfde69c7cbc1291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Wed, 19 Jun 2024 01:58:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=9B=91=E6=8E=A7):=20=E5=8E=BB=E6=8E=89c?= =?UTF-8?q?pu=E5=9E=8B=E5=8F=B7=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/console/commands/monitoring.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/console/commands/monitoring.go b/app/console/commands/monitoring.go index 37bfa496..01d34cde 100644 --- a/app/console/commands/monitoring.go +++ b/app/console/commands/monitoring.go @@ -60,14 +60,7 @@ func (receiver *Monitoring) Handle(console.Context) error { // 去除部分数据以减少数据库存储 info.Disk = nil - for _, cpu := range info.Cpus { - cpu.VendorID = "" - cpu.Family = "" - cpu.Model = "" - cpu.PhysicalID = "" - cpu.ModelName = "" - cpu.Flags = nil - } + info.Cpus = nil if types.Status != types.StatusNormal { return nil