Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce countDigits() function for PID and UID field widths #1561

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

Explorer09
Copy link
Contributor

The countDigits function was proposed in #1270 (@BenBE and @MrCirdo). And I make PID and UID field widths the first users of this new function.

@BenBE BenBE added enhancement Extension or improvement to existing feature code quality ♻️ Code quality enhancement labels Nov 11, 2024
@BenBE BenBE added this to the 3.4.0 milestone Nov 11, 2024
XUtils.c Show resolved Hide resolved
Explorer09 and others added 2 commits December 15, 2024 16:42
The GPU_TIME field is now fixed width, and thus there is no need to
call Row_updateFieldWidth().

Signed-off-by: Kang-Che Sung <[email protected]>
countDigits() is designed with 64-bit integer input and may be reused
for computing field widths of, for example, memory addresses.

Signed-off-by: Kang-Che Sung <[email protected]>
Co-authored-by: Benny Baumann <[email protected]>
Co-authored-by: Odric Roux-Paris <[email protected]>
@BenBE BenBE merged commit 762acbe into htop-dev:main Dec 16, 2024
18 checks passed
@Explorer09 Explorer09 deleted the count-digits branch December 16, 2024 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality ♻️ Code quality enhancement enhancement Extension or improvement to existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants