mirror of https://github.com/cjbassi/gotop.git
Fix cropped process names on OSX (#47)
This commit is contained in:
parent
d9607af034
commit
0614dbfbfb
|
@ -29,7 +29,7 @@ func (self *Proc) update() {
|
|||
}
|
||||
|
||||
func Processes() ([]Process, error) {
|
||||
output, err := exec.Command("ps", "-caxo", "pid,comm,pcpu,pmem,args").Output()
|
||||
output, err := exec.Command("ps", "-wwcaxo", "pid,comm,pcpu,pmem,args").Output()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to execute 'ps' command: %v", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue