Add missing %cpu to ps call on Darwin. Noted by Taylor Campbell

This commit is contained in:
Martin Gasbichler 2006-04-05 05:36:23 +00:00
parent 2a86b67ec9
commit e76bd58c53
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@
(let ((res (run/strings (let ((res (run/strings
(ps -axww (ps -axww
;; uses rgid instead of gid ;; uses rgid instead of gid
"-opid,ppid,user,ruid,uid,svuid,rgid,svgid,time,tty,ucomm,command")))) "-opid,ppid,user,ruid,uid,svuid,rgid,svgid,time,%cpu,tty,ucomm,command"))))
(if (null? res) (if (null? res)
(error "ps failed") (error "ps failed")
(cdr res)))) (cdr res))))