From: Ben Gras Date: Fri, 15 Jul 2011 12:15:15 +0000 (+0200) Subject: top: larger size field X-Git-Tag: v3.2.0~458 X-Git-Url: http://zhaoyanbai.com/repos/rndc-confgen.html?a=commitdiff_plain;h=bd6944ea49a7f3840a05e951461d4d63dbc3aa79;p=minix.git top: larger size field --- diff --git a/commands/top/top.c b/commands/top/top.c index 4f64902ff..1669f7412 100644 --- a/commands/top/top.c +++ b/commands/top/top.c @@ -361,7 +361,7 @@ void print_proc(struct tp *tp, u32_t tcyc) if(!(pr->p_flags & IS_TASK)) { printf(" %3d ", pr->p_nice); } else printf(" "); - printf("%5ldK", (pr->p_memory + 512) / 1024); + printf("%6ldK", (pr->p_memory + 512) / 1024); printf("%6s", (pr->p_flags & BLOCKED) ? "" : "RUN"); ticks = pr->p_user_time; printf(" %3ld:%02ld ", (ticks/system_hz/60), (ticks/system_hz)%60); @@ -487,7 +487,7 @@ void print_procs(int maxlines, NEWLINE; - printf(" PID USERNAME PRI NICE SIZE STATE TIME CPU COMMAND"); + printf(" PID USERNAME PRI NICE SIZE STATE TIME CPU COMMAND"); NEWLINE; for(p = 0; p < nprocs; p++) { struct proc *pr;