diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2012-04-06 02:18:50 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2012-04-06 02:18:50 +0000 |
commit | 9c39cce16b271805545770a55cb36d3069613873 (patch) | |
tree | 3403eed7adf603a10989367c30bdaf6d2ae9d4bb | |
parent | 785b4c9fd5f60915778705efc0e949631233bfc9 (diff) |
ruadd() does the summing of system and user times, so doing so again
results in bogus total times, as reported by numerous ports people.
ok miod@
-rw-r--r-- | sys/kern/kern_exit.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index d3225d4e350..a715cd1f1b0 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exit.c,v 1.109 2012/03/23 15:51:26 guenther Exp $ */ +/* $OpenBSD: kern_exit.c,v 1.110 2012/04/06 02:18:49 guenther Exp $ */ /* $NetBSD: kern_exit.c,v 1.39 1996/04/22 01:38:25 christos Exp $ */ /* @@ -297,8 +297,6 @@ exit1(struct proc *p, int rv, int flags) */ calcru(&pr->ps_tu, &rup->ru_utime, &rup->ru_stime, NULL); ruadd(rup, &pr->ps_cru); - timeradd(&rup->ru_utime, &pr->ps_cru.ru_utime, &rup->ru_utime); - timeradd(&rup->ru_stime, &pr->ps_cru.ru_stime, &rup->ru_stime); /* notify interested parties of our demise and clean up */ knote_processexit(pr); @@ -552,8 +550,6 @@ proc_finish_wait(struct proc *waiter, struct proc *p) p->p_xstat = 0; rup = &waiter->p_p->ps_cru; ruadd(rup, pr->ps_ru); - timeradd(&rup->ru_utime, &pr->ps_ru->ru_utime, &rup->ru_utime); - timeradd(&rup->ru_stime, &pr->ps_ru->ru_stime, &rup->ru_stime); proc_zap(p); } } |