Skip to content

fix(systeminfo): Remove CPU count and enhance frequency logic#1010

Merged
mhduiy merged 1 commit intolinuxdeepin:masterfrom
electricface:swt/fix-bug274991
Feb 2, 2026
Merged

fix(systeminfo): Remove CPU count and enhance frequency logic#1010
mhduiy merged 1 commit intolinuxdeepin:masterfrom
electricface:swt/fix-bug274991

Conversation

@electricface
Copy link
Member

@electricface electricface commented Jan 30, 2026

  • Removed code related to CPU count retrieval; now consistently returns CPU model information without quantity
  • Modified the Processor string to append frequency information, preventing duplicate frequency entries
  • Updated relevant test cases by removing assertions for CPU count and verifying correct frequency appending

fix(systeminfo): 删除CPU计数并增加频率补充逻辑

  • 移除获取CPU数量相关代码,统一返回无数量的CPU型号信息
  • 修改Processor字符串补充频率的实现,避免重复添加频率信息
  • 更新相关测试用例,去除对CPU数量的断言,验证频率补充正确
    PMS: BUG-274991
    Influence: 控制中心->系统->关于本机->处理器

Loading
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.

4 participants