Add -c flag to ps on OSX and FreeBSD
This commit is contained in:
parent
fdb4d5d5ff
commit
6d3425b394
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user