From 6031bf81cf205838b07d12a2e53a4895b92b71fe Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Thu, 1 Aug 2024 05:01:58 +0000 Subject: [PATCH] update --- system/system.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/system.go b/system/system.go index df39fe9..87f6c9b 100644 --- a/system/system.go +++ b/system/system.go @@ -72,10 +72,10 @@ func CheckSystemInfo(language string) string { if ret.CpuCache != "" { res += " CPU Cache : " + ret.CpuCache + "\n" } - if ret.GpuModel != "" { + if ret.GpuModel != "" && ret.GpuModel != "unknown" { res += " GPU Model : " + ret.GpuModel + "\n" if ret.GpuStats != "" && ret.GpuStats != "0" { - res += " GPU Stats : " + ret.GpuStats + "\n" + res += " GPU Stats : " + ret.GpuStats + "\n" } } if runtime.GOOS != "windows" && runtime.GOOS != "macos" { @@ -121,7 +121,7 @@ func CheckSystemInfo(language string) string { if ret.CpuCache != "" { res += " CPU 缓存 : " + ret.CpuCache + "\n" } - if ret.GpuModel != "" { + if ret.GpuModel != "" && ret.GpuModel != "unknown" { res += " GPU 型号 : " + ret.GpuModel + "\n" if ret.GpuStats != "" && ret.GpuStats != "0" { res += " GPU 状态 : " + ret.GpuStats + "\n"