OSDN Git Service

Increase ps' default RSS and VSIZE widths.
authorElliott Hughes <enh@google.com>
Wed, 13 Jul 2016 18:59:42 +0000 (11:59 -0700)
committerRob Landley <rob@landley.net>
Wed, 13 Jul 2016 22:43:55 +0000 (17:43 -0500)
This is enough for everything on Android and everything except Java
on my desktop. Even desktop Chrome fits!

toys/posix/ps.c

index 72b56cb..6a128bd 100644 (file)
@@ -338,8 +338,8 @@ struct typography {
   // Numbers
   {"PID", 5, SLOT_pid}, {"PPID", 5, SLOT_ppid}, {"PRI", 3, SLOT_priority},
   {"NI", 3, SLOT_nice}, {"ADDR", 4+sizeof(long), SLOT_eip},
-  {"SZ", 5, SLOT_vsize}, {"RSS", 5, SLOT_rss}, {"PGID", 5, SLOT_pgrp},
-  {"VSZ", 6, SLOT_vsize}, {"MAJFL", 6, SLOT_majflt}, {"MINFL", 6, SLOT_minflt},
+  {"SZ", 5, SLOT_vsize}, {"RSS", 6, SLOT_rss}, {"PGID", 5, SLOT_pgrp},
+  {"VSZ", 7, SLOT_vsize}, {"MAJFL", 6, SLOT_majflt}, {"MINFL", 6, SLOT_minflt},
   {"PR", 2, SLOT_priority}, {"PSR", 3, SLOT_taskcpu},
   {"RTPRIO", 6, SLOT_rtprio}, {"SCH", 3, SLOT_policy}, {"CPU", 3, SLOT_taskcpu},
   {"TID", 5, SLOT_tid}, {"TCNT", 4, SLOT_tcount}, {"BIT", 3, SLOT_bits},