Fix cropped process names on OSX (#47)

This commit is contained in:
Caleb Bassi 2019-02-05 14:41:04 -08:00
parent d9607af034
commit 0614dbfbfb
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}