diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /core/procps/procps-3.2.7-w-best.patch |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'core/procps/procps-3.2.7-w-best.patch')
-rw-r--r-- | core/procps/procps-3.2.7-w-best.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/procps/procps-3.2.7-w-best.patch b/core/procps/procps-3.2.7-w-best.patch new file mode 100644 index 000000000..86b3e9328 --- /dev/null +++ b/core/procps/procps-3.2.7-w-best.patch @@ -0,0 +1,16 @@ +--- procps-3.2.7/w.c.kzak 2007-04-02 23:58:30.000000000 +0200 ++++ procps-3.2.7/w.c 2007-04-03 00:09:15.000000000 +0200 +@@ -149,11 +149,11 @@ + const proc_t *restrict const tmp = *pptr; + if(unlikely(tmp->tgid == u->ut_pid)) { + *found_utpid = 1; +- best = tmp; ++ if (!best) ++ best = tmp; + } + if(tmp->tty != line) continue; + (*jcpu) += tmp->utime + tmp->stime; +- secondbest = tmp; + /* same time-logic here as for "best" below */ + if(! (secondbest && tmp->start_time <= secondbest->start_time) ){ + secondbest = tmp; |