- client: maintain mean STD at zero over all projects,

not just runnable ones


svn path=/trunk/boinc/; revision=19878
This commit is contained in:
David Anderson 2009-12-13 00:02:56 +00:00
parent 8ecd9fb00a
commit 19a69b5725
2 changed files with 9 additions and 2 deletions

View File

@ -9974,3 +9974,10 @@ David 11 Dec 2009
stripchart
stripchart.cgi
stripchart.cnf
David 12 Dec 2009
- client: maintain mean STD at zero over all projects,
not just runnable ones
client/
work_fetch.cpp

View File

@ -766,14 +766,14 @@ void RSC_WORK_FETCH::update_short_term_debts() {
);
}
rpwf.short_term_debt += delta;
total_short_term_debt += rpwf.short_term_debt;
}
total_short_term_debt += rpwf.short_term_debt;
}
// normalize so mean is zero, and limit abs value to MAX_STD
//
if (nrprojects) {
double avg_short_term_debt = total_short_term_debt / nrprojects;
double avg_short_term_debt = total_short_term_debt / nprojects;
for (i=0; i<gstate.projects.size(); i++) {
p = gstate.projects[i];
if (p->non_cpu_intensive) continue;