top: Tweak username column width to accomodate "clipboard"

This commit is contained in:
Andreas Kling 2020-07-27 16:52:22 +02:00
parent 0b1a40a6fe
commit 417e3877d7
Notes: sideshowbarker 2024-07-19 04:33:57 +09:00

View File

@ -158,7 +158,7 @@ int main(int, char**)
auto sum_diff = current.sum_times_scheduled - prev.sum_times_scheduled;
printf("\033[3J\033[H\033[2J");
printf("\033[47;30m%6s %3s %3s %-8s %-10s %6s %6s %4s %s\033[K\033[0m\n",
printf("\033[47;30m%6s %3s %3s %-9s %-10s %6s %6s %4s %s\033[K\033[0m\n",
"PID",
"TID",
"PRI",
@ -189,7 +189,7 @@ int main(int, char**)
});
for (auto* thread : threads) {
printf("%6d %3d %2u %-8s %-10s %6zu %6zu %2u.%1u %s\n",
printf("%6d %3d %2u %-9s %-10s %6zu %6zu %2u.%1u %s\n",
thread->pid,
thread->tid,
thread->priority,