Skip to content

fix(display): widen CMD column from 14 to 15 characters#382

Closed
re2zero wants to merge 1 commit into
Atoptool:masterfrom
re2zero:fix/issue-321-cmd-column-width
Closed

fix(display): widen CMD column from 14 to 15 characters#382
re2zero wants to merge 1 commit into
Atoptool:masterfrom
re2zero:fix/issue-321-cmd-column-width

Conversation

@re2zero

@re2zero re2zero commented May 28, 2026

Copy link
Copy Markdown

Summary

  • Widen CMD column from 14 to 15 characters to display full thread names

Changes

File Change
showprocs.c Increase CMD column width from 14 to 15 in procprt_CMD_a, procprt_CMD_e, and detail_printdef

Test Plan

  • Build succeeds without warnings (make with -Wall)
  • Verify CMD column shows full 15-character thread names in running atop output

pthread_setname_np allows thread names up to 15 visible characters (16 including null terminator). The CMD column was only 14 characters wide, causing the last character to be stripped from thread names. This fix widens the column to accommodate the full name.

Fixes #321

pthread_setname_np allows thread names up to 15 characters (16 including
null terminator), but the CMD column was only 14 characters wide,
causing the last character to be stripped from thread names.

Widen the CMD column and its active/exit formatters to display the full
15-character thread name.

Fixes Atoptool#321
@re2zero

re2zero commented May 28, 2026

Copy link
Copy Markdown
Author

Duplicate of #381

@re2zero re2zero closed this May 28, 2026
@re2zero re2zero deleted the fix/issue-321-cmd-column-width branch May 28, 2026 08:50
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.

Thread names are missing the last character because the CMD column is only 14 characters wide

1 participant