Skip to content

fix: correct stale counter name in kernel memory field comment - #1401

Merged
mickem merged 1 commit into
mainfrom
claude/pr-1395-review-failures-vfiq2q
Aug 13, 2026
Merged

fix: correct stale counter name in kernel memory field comment#1401
mickem merged 1 commit into
mainfrom
claude/pr-1395-review-failures-vfiq2q

Conversation

@mickem

@mickem mickem commented Aug 13, 2026

Copy link
Copy Markdown
Owner

check_kernel_memory reads \Memory\Page Reads/sec for hard_faults, but the struct field comment still named \Memory\Pages Input/sec. Those are different quantities: Page Reads/sec counts hard-fault events, while Pages Input/sec counts the pages those reads bring in (a single read can page in several). The stale comment described exactly the mix-up the counter choice avoids.

Assisted-by: Claude Code:claude-opus-5

check_kernel_memory reads \Memory\Page Reads/sec for hard_faults, but the
struct field comment still named \Memory\Pages Input/sec. Those are different
quantities: Page Reads/sec counts hard-fault events, while Pages Input/sec
counts the pages those reads bring in (a single read can page in several).
The stale comment described exactly the mix-up the counter choice avoids.

Assisted-by: Claude Code:claude-opus-5
Signed-off-by: Michael Medin <michael@medin.name>
@mickem
mickem merged commit 3e4a8c6 into main Aug 13, 2026
48 of 49 checks passed
@mickem
mickem deleted the claude/pr-1395-review-failures-vfiq2q branch August 13, 2026 06:21
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.

1 participant