Remove duplicate whitespaces in motherboard names

This commit is contained in:
2025-12-23 11:42:15 +02:00
parent b60c9df495
commit 701585bd5e
+5 -1
View File
@@ -124,7 +124,11 @@ func GetMotherboardModel() string {
if err != nil { if err != nil {
return "" return ""
} }
return strings.TrimSpace(string(bytes))
// Remove duplicate whitespaces
ret := strings.Join(strings.Fields(string(bytes)), " ")
return ret
} }
func GetMonitors() []Monitor { func GetMonitors() []Monitor {