mirror of
https://github.com/fankes/komari-agent.git
synced 2025-10-18 18:49:23 +08:00
feat: 添加 GPU 名称获取功能
This commit is contained in:
13
monitoring/unit/gpu_test.go
Normal file
13
monitoring/unit/gpu_test.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package monitoring
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestGpuName(t *testing.T) {
|
||||
name := GpuName()
|
||||
if name == "" || name == "Unknown" {
|
||||
t.Errorf("Expected GPU name, got empty or 'Unknown'")
|
||||
}
|
||||
t.Logf("GPU name: %s", name)
|
||||
}
|
Reference in New Issue
Block a user