updated on Mon Jan 16 04:00:32 UTC 2012
[aur-mirror.git] / selinux-procps / procps-3.2.7-top-sorthigh.patch
blobe17df1e22890beebbd27f9fed6b5ecc6b6988b81
1 --- procps-3.2.7/top.c.sorthigh 2007-02-05 09:06:34.000000000 +0100
2 +++ procps-3.2.7/top.c 2007-02-05 09:09:35.000000000 +0100
3 @@ -3121,6 +3121,7 @@
4 unsigned w = Fieldstab[i].width;
6 int advance = (x==0) && !Rc.mode_altscr;
7 + f += advance;
9 switch (i) {
10 case P_CMD:
11 @@ -3179,7 +3180,7 @@
12 break;
13 case P_PRI:
14 if (unlikely(-99 > p->priority) || unlikely(999 < p->priority)) {
15 - f = " RT";
16 + f = advance ? " RT" : " RT";
17 MKCOL("");
18 } else
19 MKCOL((int)p->priority);
20 @@ -3227,7 +3228,7 @@
21 break;
22 case P_WCH:
23 if (No_ksyms) {
24 - f = " %08lx ";
25 + f = advance ? "%08lx " : " %08lx ";
26 MKCOL((long)p->wchan);
27 } else {
28 MKCOL(lookup_wchan(p->wchan, p->XXXID));
29 @@ -3236,7 +3237,7 @@
31 } /* end: switch 'procflag' */
33 - rp = scat(rp, cbuf+advance);
34 + rp = scat(rp, cbuf);
35 } /* end: for 'maxpflgs' */
37 PUFF(