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 panic when IO error for some cpu features #558

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Camerooooon
Copy link
Collaborator

list_cpus() could throw an error if there is an IO error when fetching non-essential information about the CPU. This PR tries to handle those errors and work around them whenever possible so auto clock speed isn't rendered useless.

  • Modify list_cpus() to return a result and adjust the functions which depend on them to return result.
  • Add updated error handling for use of list_cpus()

Copy link
Owner

@JakeRoggenbuck JakeRoggenbuck left a comment

Choose a reason for hiding this comment

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

Looks good! Merge whenever ready

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.

Thread panic sometimes when attempting to fetch CPU info on Thinkpad X1 Nano Gen 1
2 participants