http://git.etherboot.org
/
people
/
mcb30
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bacc7ee
)
top: small fix for command line wrapping
author
vda
<vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Sat, 8 Sep 2007 17:42:00 +0000
(17:42 +0000)
committer
vda
<vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Sat, 8 Sep 2007 17:42:00 +0000
(17:42 +0000)
git-svn-id: svn://busybox.net/trunk/busybox@19805
69ca8d6d
-28ef-0310-b511-
8ec308f3f277
procps/top.c
patch
|
blob
|
history
diff --git
a/procps/top.c
b/procps/top.c
index
529db5f
..
ac3b7e5
100644
(file)
--- a/
procps/top.c
+++ b/
procps/top.c
@@
-474,8
+474,8
@@
static NOINLINE void display_process_list(int count, int scr_width)
, SHOW_STAT(pcpu)
#endif
);
- if (col < scr_width)
- read_cmdline(line_buf + col, scr_width - col, s->pid, s->comm);
+ if (col
+ 1
< scr_width)
+ read_cmdline(line_buf + col, scr_width - col
- 1
, s->pid, s->comm);
fputs(line_buf, stdout);
/* printf(" %d/%d %lld/%lld", s->pcpu, total_pcpu,
jif.busy - prev_jif.busy, jif.total - prev_jif.total); */