From 4f5bac46d2ab1fcd50065dc6a2a5220401f2ea6a Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Fri, 30 Jun 2017 09:14:13 -0500 Subject: [PATCH] main.c: Extend PSS column by 1 character to fit >= 100MB --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index a4206ae..f31d120 100644 --- a/src/main.c +++ b/src/main.c @@ -85,7 +85,7 @@ static void do_one_process(int pid) fclose(file); } - printf("%-20s %-5i : %-5" PRIu64 " Kb\n",process.name, pid , process.PSS_kb); + printf("%-20s %-5i : %-6" PRIu64 " Kb\n",process.name, pid , process.PSS_kb); total_PSS += process.PSS_kb; total_proc++; free(process.name); @@ -126,7 +126,7 @@ int main(int argc, char **argv) } dir = opendir("/proc"); - printf("\n%-20s %-5s : %-5s \n\n","Process Name", "PID", "Size in KB"); + printf("\n%-20s %-5s : %-6s \n\n","Process Name", "PID", "Size in KB"); while (dir) { int pid; entry = readdir(dir);