Skip to content

ptree: Align PID column width based on kernel pid_max#110

Merged
basil merged 1 commit intomasterfrom
width
Mar 5, 2026
Merged

ptree: Align PID column width based on kernel pid_max#110
basil merged 1 commit intomasterfrom
width

Conversation

@basil
Copy link
Owner

@basil basil commented Mar 5, 2026

Read /proc/sys/kernel/pid_max to determine the maximum PID digit count and left-align PIDs to that width, so the tree output stays aligned regardless of PID length.

Fixes #71

Read /proc/sys/kernel/pid_max to determine the maximum PID digit count
and left-align PIDs to that width, so the tree output stays aligned
regardless of PID length.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@basil basil added the Type: Bug An unexpected problem or behavior label Mar 5, 2026
@github-actions github-actions bot added the Component: ptree Issues related to ptree(1) label Mar 5, 2026
@basil basil merged commit 77efae8 into master Mar 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: ptree Issues related to ptree(1) Type: Bug An unexpected problem or behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix ptree(1) indentation

1 participant