Skip to content

Conversation

Nexisato
Copy link
Contributor

Description (tiny fix)

  • 在部分中文环境下的 bash 中,lscpu 无法正常读取到 cpu brand,这里替换成了直接去 /proc 中读

demo

image

  • 测试:
    image

@Zeyi-Lin Zeyi-Lin requested a review from SAKURA-CAT February 26, 2025 12:06
@SAKURA-CAT
Copy link
Member

其实应该写个单测啥的 不过其实问题也不大,先这样

@SAKURA-CAT SAKURA-CAT merged commit 861cba9 into SwanHubX:main Feb 26, 2025
5 checks passed
@Nexisato Nexisato deleted the fix/cpuinfo branch February 28, 2025 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants