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 cfg sys usage #2

Merged
merged 1 commit into from
Jan 2, 2023

Conversation

IceSentry
Copy link

Alright, my original PR didn't work because it was always trying to use sysinfo even on some unsupported platforms.

What I did is go back to the mod internal pattern you had earlier, but keep the shared part at the top level. This way we only have the cfg block in one single place and every thing is exported as a no-op system.

I also moved the log_system_info() inside those mod internal that way we can be sure to use the same config everywhere.

@l1npengtul l1npengtul merged commit 4cc8ab7 into l1npengtul:sys-usage-info Jan 2, 2023
@IceSentry IceSentry deleted the fix-sysuage-info branch January 2, 2023 21:34
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