Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS committed Aug 1, 2024
1 parent b622183 commit 6031bf8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 6031bf8

Please sign in to comment.