Updated with Tizen:Base source codes
[external/procps.git] / packaging / procps-3.2.7-w-best.patch
1 --- procps-3.2.7/w.c.kzak       2007-04-02 23:58:30.000000000 +0200
2 +++ procps-3.2.7/w.c    2007-04-03 00:09:15.000000000 +0200
3 @@ -149,11 +149,11 @@
4         const proc_t *restrict const tmp = *pptr;
5         if(unlikely(tmp->tgid == u->ut_pid)) {
6             *found_utpid = 1;
7 -           best = tmp;
8 +           if (!best)
9 +                best = tmp;
10         }
11         if(tmp->tty != line) continue;
12         (*jcpu) += tmp->utime + tmp->stime;
13 -       secondbest = tmp;
14         /* same time-logic here as for "best" below */
15         if(!  (secondbest && tmp->start_time <= secondbest->start_time)  ){
16             secondbest = tmp;