Fix process name cropping

This commit is contained in:
Caleb Bassi 2018-12-07 10:42:23 -08:00
parent 1aa5eea24c
commit 44ed6e8752

View File

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