From c8356d9ad3e2795d3b4112fbf830697a814fc3d3 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 13 Jul 2006 15:26:41 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=10648 --- checkin_notes | 6 ++++++ client/cpu_sched.C | 2 ++ 2 files changed, 8 insertions(+) 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).