Skip to content

docs: document --interval option in python client readme - #390

Open
jay23606 wants to merge 1 commit into
zdz:masterfrom
jay23606:pr-go/340-bug-client-readme-interval
Open

jay23606 wants to merge 1 commit into
zdz:masterfrom
jay23606:pr-go/340-bug-client-readme-interval

Conversation

@jay23606

Copy link
Copy Markdown

Bug

The Python client section of the root README.md (4.2) did not document the --interval option, which controls the report interval. Issue #340 also noted that editing the INTERVAL constant has no effect on reporting; only --interval does.

Change

Adds an example to the Python client section of README.md showing --interval 3, with a comment that the default is 1 second. I checked the default against client/stat_client.py: the option is registered with default=1 and drives the blocking psutil.cpu_percent call in sample(), which paces the report loop. So the documented default holds.

Adds client/test_readme_interval.py, a regression test that reads the --interval default from stat_client.py and asserts that README.md documents --interval with 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.
  • Same command with README.md restored to the base commit 255ff33: fails with README 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

Copilot AI balanced review requested due to automatic review settings November 30, 2026 07:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

This branch has not been deployed

No deployments
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