From d3aa55c9b4d51f15031e896bd1afb55dff6dfa56 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 16 Jan 2009 18:37:13 +0000 Subject: [PATCH] - client: remove limits on LTD. svn path=/trunk/boinc/; revision=16942 --- checkin_notes | 6 ++++++ client/work_fetch.cpp | 9 --------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/checkin_notes b/checkin_notes index edefca0936..331921498e 100644 --- a/checkin_notes +++ b/checkin_notes @@ -472,3 +472,9 @@ Charlie Jan 15 2009 mac_build/ boinc.xcodeproj/ project.pbxproj + +David 16 Jan 2009 + - client: remove limits on LTD. + + client/ + work_fetch.cpp diff --git a/client/work_fetch.cpp b/client/work_fetch.cpp index 0d4a3eb390..8e6e86aab9 100644 --- a/client/work_fetch.cpp +++ b/client/work_fetch.cpp @@ -23,13 +23,6 @@ #include "client_state.h" #endif -// max long-term debt - the "window size" of enforcing resource share. -// If a job of P runs in EDF mode for a long time, -// P's debt will go to -MAX_LTD and other projects will go to MAX_LTD. -// When it's done, P won't run for a week. -// -static const double MAX_LTD = 7*86400; - #include "work_fetch.h" using std::vector; @@ -346,8 +339,6 @@ void RSC_WORK_FETCH::update_debts() { p = gstate.projects[i]; RSC_PROJECT_WORK_FETCH& w = project_state(p); w.debt -= avg_debt; - if (w.debt > MAX_LTD) w.debt = MAX_LTD; - if (w.debt < -MAX_LTD) w.debt = -MAX_LTD; } }