From be7e9e02c3e21bfaff85f7c41db0ae83d718b7a2 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 20 Jan 2016 17:33:31 -0600 Subject: Correct units of %MEM and %VSZ. --- toys/posix/ps.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/toys/posix/ps.c b/toys/posix/ps.c index bddb3a9d..6c3ed374 100644 --- a/toys/posix/ps.c +++ b/toys/posix/ps.c @@ -327,7 +327,7 @@ struct typography { // Remaining ungrouped {"STIME", 5, 19}, {"F", 1, 64|6}, {"S", -1, 64}, {"C", 1, 64|11}, {"%CPU", 4, 64|11}, - {"STAT", -5, 64}, {"%VSZ", 5, 23}, {"VIRT", 4, 47}, {"RES", 4, 48}, + {"STAT", -5, 64}, {"%VSZ", 5, 20}, {"VIRT", 4, 47}, {"RES", 4, 48}, {"SHR", 4, 49}, {"READ", 6, 50}, {"WRITE", 6, 51}, {"IO", 6, 28}, {"DREAD", 6, 52}, {"DWRITE", 6, 53}, {"SWAP", 6, 54}, {"DIO", 6, 29}, {"%MEM", 5, 21} @@ -472,7 +472,8 @@ static char *string_field(struct carveup *tb, struct strawberry *field) if (out