mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
top: truncate usernames to 8 chars
This commit is contained in:
parent
4652daace9
commit
9109fbeaa1
@ -431,7 +431,7 @@ static void display_status(int count, int scr_width)
|
|||||||
else
|
else
|
||||||
sprintf(vsz_str_buf, "%7ld", s->vsz);
|
sprintf(vsz_str_buf, "%7ld", s->vsz);
|
||||||
// PID PPID USER STAT VSZ %MEM [%CPU] COMMAND
|
// PID PPID USER STAT VSZ %MEM [%CPU] COMMAND
|
||||||
col -= printf("\n" "%5u%6u %-8s %s%s" FMT
|
col -= printf("\n" "%5u%6u %-8.8s %s%s" FMT
|
||||||
#if ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE
|
#if ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE
|
||||||
FMT
|
FMT
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user