From 1a7a9d0ec2882ed7d64a79005bc51c3122263f43 Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Sat, 21 Jun 2003 02:31:49 +0000 Subject: - 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. --- sys/kern/sched_ule.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys') diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index 9e01ef869bbe..615588b94332 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -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 -- cgit v1.3