fix read_cmdline API and a small buglet where "[comm]" may be too narrow
function old new delta func_args 25 26 +1 read_cmdline 119 114 -5 display_process_list 1462 1447 -15 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 1/-20) Total: -19 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -617,7 +617,7 @@ static NOINLINE void display_process_list(int lines_rem, int scr_width)
|
||||
#endif
|
||||
);
|
||||
if ((int)(col + 1) < scr_width)
|
||||
read_cmdline(line_buf + col, scr_width - col - 1, s->pid, s->comm);
|
||||
read_cmdline(line_buf + col, scr_width - col, s->pid, s->comm);
|
||||
fputs(line_buf, stdout);
|
||||
/* printf(" %d/%d %lld/%lld", s->pcpu, total_pcpu,
|
||||
cur_jif.busy - prev_jif.busy, cur_jif.total - prev_jif.total); */
|
||||
|
Reference in New Issue
Block a user