Skip to content

Commit

Permalink
feat(监控): 去掉cpu型号信息
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Jun 18, 2024
1 parent d48963a commit e0a7ada
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions app/console/commands/monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e0a7ada

Please sign in to comment.