Merge pull request #3 from dtzWill/fix/tweak-width

main.c: Extend PSS column by 1 character to fit >= 100MB
This commit is contained in:
Victor Rodriguez
2017-07-05 06:53:10 -07:00
committed by GitHub
+2 -2
View File
@@ -84,7 +84,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);
@@ -121,7 +121,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);