Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
The Python client section of the root
README.md(4.2) did not document the--intervaloption, which controls the report interval. Issue #340 also noted that editing theINTERVALconstant has no effect on reporting; only--intervaldoes.Change
Adds an example to the Python client section of
README.mdshowing--interval 3, with a comment that the default is 1 second. I checked the default againstclient/stat_client.py: the option is registered withdefault=1and drives the blockingpsutil.cpu_percentcall insample(), which paces the report loop. So the documented default holds.Adds
client/test_readme_interval.py, a regression test that reads the--intervaldefault fromstat_client.pyand asserts thatREADME.mddocuments--intervalwith that same default.Testing
wsl -d Debian -- bash -lc 'cd /mnt/e/pr-go-state/work/zdz_ServerStatus-Rust-340-12496-d88fa2 && python3 client/test_readme_interval.py': passes on the fix.README.mdrestored to the base commit255ff33: fails withREADME does not document --interval.Regression test: fails on base twice (/README does not document --interval/), passes on fix twice (
python3 client/test_readme_interval.py)Refs #340