Remove -ww from macOS ps call

This commit is contained in:
whuang8 2019-02-10 08:16:12 -06:00
parent 60b913a93e
commit d6008391c3

View File

@ -37,7 +37,7 @@ func (self *Proc) update() {
func Processes() ([]Process, error) {
keywords := fmt.Sprintf("pid=%s,comm=%s,pcpu=%s,pmem=%s,args", ten, fifty, five, five)
output, err := exec.Command("ps", "-wwcaxo", keywords).Output()
output, err := exec.Command("ps", "-caxo", keywords).Output()
if err != nil {
return nil, fmt.Errorf("failed to execute 'ps' command: %v", err)
}