From 44ed6e8752843653bb2cad01300013f916a9e0e2 Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Fri, 7 Dec 2018 10:42:23 -0800 Subject: [PATCH] Fix process name cropping --- src/widgets/proc_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/proc_unix.go b/src/widgets/proc_unix.go index b973f3a..154a495 100644 --- a/src/widgets/proc_unix.go +++ b/src/widgets/proc_unix.go @@ -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) }