Skip to content

Add 'from_reader' for LoadAverage struct#191

Merged
eminence merged 1 commit intoeminence:masterfrom
ludo-c:wip-alternate-root-for-loadaverage
Jul 29, 2022
Merged

Add 'from_reader' for LoadAverage struct#191
eminence merged 1 commit intoeminence:masterfrom
ludo-c:wip-alternate-root-for-loadaverage

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