Add -c flag to ps on OSX and FreeBSD

This commit is contained in:
Caleb Bassi 2019-01-25 15:35:02 -08:00
parent fdb4d5d5ff
commit 6d3425b394

View File

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