Merge "Toolbox: |ps -t| now correctly displays the USER for threads" am: 7a6cb3063c
am: 6f97784152

* commit '6f9778415288f8203b66e5d8e8e627bb81539706':
  Toolbox: |ps -t| now correctly displays the USER for threads
diff --git a/toolbox/ps.c b/toolbox/ps.c
index 3bc540d..ecc1c9f 100644
--- a/toolbox/ps.c
+++ b/toolbox/ps.c
@@ -57,7 +57,7 @@
     int prio, nice, rtprio, sched, psr;
     struct passwd *pw;
 
-    sprintf(statline, "/proc/%d", pid);
+    sprintf(statline, "/proc/%d", tid ? tid : pid);
     stat(statline, &stats);
 
     if(tid) {