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

Use sysinfo, this will fix #311 #314

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

Commandcracker
Copy link
Contributor

@Commandcracker Commandcracker commented Nov 18, 2024

Description

sysinfo is actively developed, supports android and will default no null values if the OS is not detected.
(See #311 (comment))

Testing

Ran on Win11 and linux (wls docker) and android (Samsung tabled)

Windows
Screenshot 2024-11-18 203025
Android
image
Docker
Screenshot 2024-11-18 204723

Checklist

Things need to be done before this Pull Request can be merged.

  • Code is well-formatted and adheres to project style guidelines: cargo fmt
  • Code does not produce any clippy warnings cargo clippy

);
return;
} else {
log::info!("CPU Information: Could not retrieve CPU details.");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

should this be log::warn! ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah I think warning is better

@Snowiiii
Copy link
Member

LGTM.
Thanks @Commandcracker

@Snowiiii Snowiiii merged commit 782d5aa into Pumpkin-MC:master Nov 18, 2024
9 checks passed
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.

3 participants