summaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-09-08 17:42:00 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-09-08 17:42:00 +0000
commit4d7605af86644861faf0f3a95b7bf36865bf2a90 (patch)
tree6e8f10a9354a127f8ab22026d5b7e7f008a1150b /procps
parent4c1d88daff14331b64ef1019faf3f6f1ecaff817 (diff)
downloadbusybox-w32-4d7605af86644861faf0f3a95b7bf36865bf2a90.tar.gz
busybox-w32-4d7605af86644861faf0f3a95b7bf36865bf2a90.tar.bz2
busybox-w32-4d7605af86644861faf0f3a95b7bf36865bf2a90.zip
top: small fix for command line wrapping
Diffstat (limited to 'procps')
-rw-r--r--procps/top.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/procps/top.c b/procps/top.c
index 529db5f7b..ac3b7e5a2 100644
--- a/procps/top.c
+++ b/procps/top.c
@@ -474,8 +474,8 @@ static NOINLINE void display_process_list(int count, int scr_width)
474 , SHOW_STAT(pcpu) 474 , SHOW_STAT(pcpu)
475#endif 475#endif
476 ); 476 );
477 if (col < scr_width) 477 if (col + 1 < scr_width)
478 read_cmdline(line_buf + col, scr_width - col, s->pid, s->comm); 478 read_cmdline(line_buf + col, scr_width - col - 1, s->pid, s->comm);
479 fputs(line_buf, stdout); 479 fputs(line_buf, stdout);
480 /* printf(" %d/%d %lld/%lld", s->pcpu, total_pcpu, 480 /* printf(" %d/%d %lld/%lld", s->pcpu, total_pcpu,
481 jif.busy - prev_jif.busy, jif.total - prev_jif.total); */ 481 jif.busy - prev_jif.busy, jif.total - prev_jif.total); */