Fix a typo introduced in r344133
The line was misedited to change tt to st instead of changing ut to st. The use of st as the denominator in mul64_by_fraction() will lead to an integer divide fault in the intr proc (the process holding ithreads) where st will be 0. This divide by 0 happens after the total runtime for all ithreads exceeds 76 hours. Submitted by: bde
This commit is contained in:
parent
d12354a56c
commit
f552633918
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=345273
@ -978,7 +978,7 @@ calcru1(struct proc *p, struct rusage_ext *ruxp, struct timeval *up,
|
||||
su = (tu * st) / tt;
|
||||
} else {
|
||||
uu = mul64_by_fraction(tu, ut, tt);
|
||||
su = mul64_by_fraction(tu, ut, st);
|
||||
su = mul64_by_fraction(tu, st, tt);
|
||||
}
|
||||
|
||||
if (tu >= ruxp->rux_tu) {
|
||||
|
Loading…
Reference in New Issue
Block a user