Skip to content

Commit

Permalink
Improve performance of jobs segment
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne committed Dec 12, 2019
1 parent 36d6d34 commit 01972e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion segment-jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func segmentJobs(p *powerline) {
ppid = int(pppid)
}

out, _ := exec.Command("ps", "-a", "-oppid=").Output()
out, _ := exec.Command("ps", "-oppid=").Output()
processes := strings.Split(string(out), "\n")
for _, processPpidStr := range processes {
processPpid, _ := strconv.ParseInt(strings.TrimSpace(processPpidStr), 10, 64)
Expand Down

0 comments on commit 01972e5

Please sign in to comment.