mirror of
https://github.com/sheumann/hush.git
synced 2024-08-21 11:28:57 +00:00
top: small fix for command line wrapping
This commit is contained in:
parent
4c1d88daff
commit
4d7605af86
@ -474,8 +474,8 @@ static NOINLINE void display_process_list(int count, int scr_width)
|
|||||||
, SHOW_STAT(pcpu)
|
, SHOW_STAT(pcpu)
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
if (col < scr_width)
|
if (col + 1 < scr_width)
|
||||||
read_cmdline(line_buf + col, scr_width - col, s->pid, s->comm);
|
read_cmdline(line_buf + col, scr_width - col - 1, s->pid, s->comm);
|
||||||
fputs(line_buf, stdout);
|
fputs(line_buf, stdout);
|
||||||
/* printf(" %d/%d %lld/%lld", s->pcpu, total_pcpu,
|
/* printf(" %d/%d %lld/%lld", s->pcpu, total_pcpu,
|
||||||
jif.busy - prev_jif.busy, jif.total - prev_jif.total); */
|
jif.busy - prev_jif.busy, jif.total - prev_jif.total); */
|
||||||
|
Loading…
Reference in New Issue
Block a user