- client: remove limits on LTD.

svn path=/trunk/boinc/; revision=16942
This commit is contained in:
David Anderson 2009-01-16 18:37:13 +00:00
parent f67f00c97a
commit d3aa55c9b4
2 changed files with 6 additions and 9 deletions

View File

@ -472,3 +472,9 @@ Charlie Jan 15 2009
mac_build/ mac_build/
boinc.xcodeproj/ boinc.xcodeproj/
project.pbxproj project.pbxproj
David 16 Jan 2009
- client: remove limits on LTD.
client/
work_fetch.cpp

View File

@ -23,13 +23,6 @@
#include "client_state.h" #include "client_state.h"
#endif #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" #include "work_fetch.h"
using std::vector; using std::vector;
@ -346,8 +339,6 @@ void RSC_WORK_FETCH::update_debts() {
p = gstate.projects[i]; p = gstate.projects[i];
RSC_PROJECT_WORK_FETCH& w = project_state(p); RSC_PROJECT_WORK_FETCH& w = project_state(p);
w.debt -= avg_debt; w.debt -= avg_debt;
if (w.debt > MAX_LTD) w.debt = MAX_LTD;
if (w.debt < -MAX_LTD) w.debt = -MAX_LTD;
} }
} }