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

Add 'from_reader' for LoadAverage struct #191

Merged
merged 1 commit into from
Jul 29, 2022

Conversation

ludo-c
Copy link
Contributor

@ludo-c ludo-c commented Jul 28, 2022

Hello,

Thank you very much for this library ! It helps a lot !

Is it possible to add the possibility to read the load average from another directory than /proc please ?

This PR is inspired from the Meminfo struct, adding a method from_reader in the LoadAverage struct.

Tests are ok

test result: ok. 105 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.02s
test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.84s

Thank you !

@eminence
Copy link
Owner

Looks great, thank you!

@eminence eminence merged commit 2344fd4 into eminence:master Jul 29, 2022
@eminence
Copy link
Owner

This change has been published as version v0.14.0

@ludo-c
Copy link
Contributor Author

ludo-c commented Jul 29, 2022

Thank you very much !

@ludo-c ludo-c deleted the wip-alternate-root-for-loadaverage branch July 29, 2022 20:25
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