Skip to content

fix: sleep in inner per-file loop, missing exit, and typos - #35

Merged
k-rister merged 1 commit into
masterfrom
fix-critical-bugs-386
Jul 1, 2026
Merged

fix: sleep in inner per-file loop, missing exit, and typos#35
k-rister merged 1 commit into
masterfrom
fix-critical-bugs-386

Conversation

@k-rister

Copy link
Copy Markdown
Contributor

Summary

  • procstat-collect: sleep $interval was inside the inner per-file loop instead of the outer while loop, multiplying the sample interval by the number of files being collected. With the default 7 files and 3-second interval, each iteration took 21 seconds instead of 3.
  • procstat-start: missing exit 1 when the procstat-collect binary is not present — exits 0 and silently masks the failure. Also fixes rm target mismatch (procstat-pids.txt vs actual procstat-pid.txt).
  • procstat-stop: typo in error message (procstst-pid.txt).
  • Minor typo fixes in error messages across all three scripts.

Jira

Test plan

  • bash -n passes on all three scripts
  • CI workflow passes

🤖 Generated with Claude Code

procstat-collect:
- Move sleep from inner per-file loop to outer while loop — was
  sleeping once per file instead of once per iteration, multiplying
  the sample interval by the file count
- Fix typos in error message: "must a be a positive interger" →
  "must be a positive integer"

procstat-start:
- Add missing exit 1 when procstat-collect binary is not present —
  was falling through and exiting 0, masking the failure
- Fix rm target: procstat-pids.txt (plural) → procstat-pid.txt
  (singular) to match the actual filename written on line 66
- Fix typo: "Invalid optioni" → "Invalid option"

procstat-stop:
- Fix typo in error message: "procstst-pid.txt" → "procstat-pid.txt"

Closes: #34

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@k-rister k-rister self-assigned this Jun 30, 2026
@k-rister
k-rister requested a review from a team June 30, 2026 15:31
@project-crucible-tracking project-crucible-tracking Bot moved this to In Progress in Crucible Tracking Jun 30, 2026
@k-rister
k-rister merged commit 92412b0 into master Jul 1, 2026
168 of 182 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Crucible Tracking Jul 1, 2026
@k-rister
k-rister deleted the fix-critical-bugs-386 branch July 1, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants