Some lines of patch were broken and blanks were removed by the editor
when I paste it in the first message so I sent the patch again and I
attach it to avoid further issues.

Sorry, I'm not used to the system.

Alfredo
Index: output.c
===================================================================
RCS file: /cvsroot/procps/procps/ps/output.c,v
retrieving revision 1.62
diff -r1.62 output.c
112a113,126
> #define cook_time(P) (P->utime + P->stime) / Hertz
> 
> #define cook_etime(P) seconds_since_boot - (unsigned long)(P->start_time / Hertz)
> 
> #define CMP_COOKED_TIME(NAME) \
> static int sr_ ## NAME (const proc_t* P, const proc_t* Q) { \
>     unsigned long p_time,q_time; \
>     p_time=cook_ ##NAME (P); \
>     q_time=cook_ ##NAME (Q); \
>     if (p_time < q_time) return -1; \
>     if (p_time > q_time) return 1; \
>     return 0; \
> }
> 
187a202,204
> CMP_COOKED_TIME(time)
> CMP_COOKED_TIME(etime)
> 
411c428
<   t = seconds_since_boot - (unsigned long)(pp->start_time / Hertz);
---
>   t = cook_etime(pp);
479c496
<   t = (pp->utime + pp->stime) / Hertz;
---
>   t = cook_time(pp);
1289c1306
< {"atime",     "TIME",    pr_time,     sr_nop,     8,   0,    SOE, ET|RIGHT}, /*cputime*/ /* was 6 wide */
---
> {"atime",     "TIME",    pr_time,     sr_time,     8,   0,    SOE, ET|RIGHT}, /*cputime*/ /* was 6 wide */
1308c1325
< {"cputime",   "TIME",    pr_time,     sr_nop,     8,   0,    DEC, ET|RIGHT}, /*time*/
---
> {"cputime",   "TIME",    pr_time,     sr_time,     8,   0,    DEC, ET|RIGHT}, /*time*/
1323c1340
< {"etime",     "ELAPSED", pr_etime,    sr_nop,    11,   0,    U98, ET|RIGHT}, /* was 7 wide */
---
> {"etime",     "ELAPSED", pr_etime,    sr_etime,    11,   0,    U98, ET|RIGHT}, /* was 7 wide */
1466c1483
< {"time",      "TIME",    pr_time,     sr_nop,     8,   0,    U98, ET|RIGHT}, /*cputime*/ /* was 6 wide */
---
> {"time",      "TIME",    pr_time,     sr_time,     8,   0,    U98, ET|RIGHT}, /*cputime*/ /* was 6 wide */

Reply via email to