Bug 25055

Summary: Header in 'top' too long for SMP system and wraps distorting ouput
Product: Base System Reporter: mikea <mikea>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description mikea 2001-02-13 06:50:01 UTC
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. :^)
Comment 1 Mike Heffner freebsd_committer freebsd_triage 2001-06-30 00:18:45 UTC
State Changed
From-To: open->closed

Fix in src/usr.bin/top/machine.c,v 1.39.