If the max PID or UID value for a platform is exactly a power of ten (10000, 100000, etc.) the column widths of PID and UID would be 1 char less than the correct number of digits. This is caused by the wrong rounding function (ceil(x)); change to the correct one (trunc(x) + 1). Signed-off-by: Kang-Che Sung <explorer09@gmail.com>main
parent
afc4a9d657
commit
ee1bf2f917
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue