updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / selinux-procps / procps-3.2.7-w-best.patch
blob86b3e9328374feb871ca030cb43c0f116f24108a
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;
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;