mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
- lticks was erroneously being updated in sched_pctcpu(). This was causing
us to skip the pctcpu_update() call which lead to inaccurate cpu usage statistics for processes that didn't run often.
This commit is contained in:
parent
665cb285a8
commit
1a7a9d0ec2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116643
@ -1250,8 +1250,6 @@ sched_pctcpu(struct kse *ke)
|
||||
if (ke->ke_ticks) {
|
||||
int rtick;
|
||||
|
||||
/* Update to account for time potentially spent sleeping */
|
||||
ke->ke_ltick = ticks;
|
||||
/*
|
||||
* Don't update more frequently than twice a second. Allowing
|
||||
* this causes the cpu usage to decay away too quickly due to
|
||||
|
Loading…
Reference in New Issue
Block a user