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 wrong logic in from_hwmon() function #1439

Merged
merged 1 commit into from
Dec 26, 2024

Conversation

CongLuanTran
Copy link
Contributor

In the from_hwmon() function, the loop should skip the entry if it is a directory, but the current code will skip the entry if it is NOT a directory. This PR just fix that logic.

@CongLuanTran CongLuanTran changed the title Fix wrong logic when checking that the DirEntry is a file Fix wrong logic in from_hwmon() function Dec 26, 2024
@GuillaumeGomez
Copy link
Owner

Thanks a lot! Gonna make a bugfix release whenever I can.

@GuillaumeGomez GuillaumeGomez merged commit 5421548 into GuillaumeGomez:master Dec 26, 2024
67 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.

2 participants