| Summary: | Header in 'top' too long for SMP system and wraps distorting ouput | ||
|---|---|---|---|
| Product: | Base System | Reporter: | mikea <mikea> |
| Component: | misc | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Unspecified | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->closed Fix in src/usr.bin/top/machine.c,v 1.39. |
When top is run on an SMP processor machine, the column header is too long and wraps into the output area of the display. Fix: Change header to use 'CMD' instead of 'COMMAND' so that header fits on screen. Relevant code is in /usr/src/usr.bin/top/machine.c diff machine.c machine.c.new 114c114 < " PID %-*.*s PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND"; --- > " PID %-*.*s PRI NICE SIZE RES STATE C TIME WCPU CPU CMD"; How-To-Repeat: Run top on an SMP machine. :^)