1
0
mirror of https://github.com/fumiama/gozel.git synced 2026-06-05 00:10:24 +08:00
This commit is contained in:
源文雨
2026-03-27 00:10:13 +08:00
parent 3655795413
commit 07f4270ed8
4 changed files with 8 additions and 11 deletions

View File

@@ -54,9 +54,9 @@ func main() {
}
fmt.Println("=============== Device Basic Properties ===============")
name, _, _ := strings.Cut(string(prop.Name[:]), "\x00")
fmt.Println(
"Running on device: ID =", prop.Deviceid, ", Name =",
strings.TrimSpace(string(prop.Name[:])),
"Running on device: ID =", prop.Deviceid, ", Name =", name,
"@", strconv.FormatFloat(float64(prop.Coreclockrate)/1024/1024/1024, 'f', 2, 64), "GHz.",
)