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: Fix improper usage of sysinfo library methods #540

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

famouswizard
Copy link

In the previous implementation, the methods System::name() and System::os_version() were being called directly on the System structure, which was not the correct way to use the sysinfo library. These methods are now properly invoked through an instance of the sys structure, ensuring that the code follows the correct usage pattern.

This update ensures that the script works as expected and properly outputs system information.
The fix aligns the code with best practices for interacting with the sysinfo library.

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.

1 participant