diff --git a/checkin_notes b/checkin_notes index b9c21f3461..f7449a515b 100755 --- a/checkin_notes +++ b/checkin_notes @@ -7527,3 +7527,9 @@ David 12 July 2006 cpu_sched.C cs_apps.C cs_scheduler.C + +David 13 July 2006 + - core client: adjust_debts() returns if elapsed time < 1 + + client/ + cpu_sched.C diff --git a/client/cpu_sched.C b/client/cpu_sched.C index e6c37d66ce..cf5e92182b 100644 --- a/client/cpu_sched.C +++ b/client/cpu_sched.C @@ -208,6 +208,8 @@ void CLIENT_STATE::adjust_debts() { double share_frac; double wall_cpu_time = gstate.now - adjust_debts_last_time; + if (wall_cpu_time < 1) return; + // Total up total and per-project "wall CPU" since last CPU reschedule. // "Wall CPU" is the wall time during which a task was // runnable (at the OS level).