On Wed, Nov 1, 2023 at 10:18 AM Matthew Chae <matthew.c...@axis.com> wrote:
>
> Hi maintainer,
>
> I'd like to hear your opinion regarding large PID can overflow its column in 
> top command.
>
> The max PID value can have 7 digits as the 4194304.
> Busybox v1.36 released a new patch to handle large PID value in top command.
> However, it still causes misalignment between the title and the number for 7 
> digits or 6 digits PID.
> The presence of a large number of PID and PPID digits in the column may cause 
> overflow, making it impossible to display the entire data accurately.
> Plus,  the large PID causes that user name can't be displayed up to 8 
> characters and result in the truncation of less than 8 characters.
>
> I can contribute new patch which allocates appropriate space for the number 
> of digits in the PID and PPID to represent the values in each column 
> correctly.
> This can make alignment between the title and the number for 7 digits PID and 
> 5 digits PID and also display user name up to 8 characters.
>
> What do you think? If you agree, I will send a patch.

Absolutely, please send a patch. Would be interesting to see a good solution.
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to