Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix system informations cpu_brand always being empty #2797

Merged
merged 3 commits into from
Feb 15, 2025

Conversation

AMS21
Copy link
Contributor

@AMS21 AMS21 commented Feb 7, 2025

This was caused by a misuse of the global_cpu_info function, which does not contain a valid cpu_brand field.

To fix this, we now get the first cpu and return it's brand instead.

With this patch the system_information example now correctly displays as
Screenshot_20250207_085114

Fixes #2794

This was caused by a misuse of the `global_cpu_info` function, which
does not contain a valid `cpu_brand` field.

To fix this, we now get the first cpu and return it's brand instead.

Fixes iced-rs#2794
@hecrj hecrj added this to the 0.14 milestone Feb 15, 2025
@hecrj hecrj added bug Something isn't working shell fix labels Feb 15, 2025
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hecrj hecrj enabled auto-merge February 15, 2025 13:07
@hecrj hecrj merged commit d684897 into iced-rs:master Feb 15, 2025
15 checks passed
@AMS21 AMS21 deleted the fix_2794 branch February 15, 2025 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix shell
Projects
None yet
Development

Successfully merging this pull request may close these issues.

System informations cpu_brand is always empty
2 participants