fix for false gpu detection

This commit is contained in:
nekohepott 2026-06-17 04:16:26 +03:00
parent 3d3d448d3d
commit 71ab162576
No known key found for this signature in database

View File

@ -230,13 +230,11 @@ func getCpu() string {
}
}
cpu = fmt.Sprintf(cpu)
cpu = strings.TrimSpace(cpu)
return cpu
return strings.TrimSpace(cpu)
}
func getGpu() string {
out, err := exec.Command("sh", "-c", "lspci -mm | grep -E 'VGA|3D'").Output()
out, err := exec.Command("sh", "-c", `lspci -mm | awk -F'"' '$2=="VGA compatible controller" || $2=="3D controller" || $2=="Display controller"'`).Output()
if err != nil || len(out) == 0 {
return "Unknown GPU"
}