- wrapper: fix fraction-done bug

svn path=/trunk/boinc/; revision=19880
This commit is contained in:
David Anderson 2009-12-13 18:06:04 +00:00
parent a3f80676b7
commit 04ea096e62
2 changed files with 7 additions and 1 deletions

View File

@ -10005,3 +10005,9 @@ David 12 Dec 2009
app_control.cpp
lib/
app_ipc.h
David 13 Dec 2009
- wrapper: fix fraction-done bug
samples/wrapper/
wrapper.cpp

View File

@ -587,7 +587,7 @@ int main(int argc, char** argv) {
}
poll_boinc_messages(task);
double task_fraction_done = task.fraction_done();
double delta = task_fraction_done*task.weight;
double delta = task_fraction_done*task.weight/total_weight;
send_status_message(task, frac_done+delta, checkpoint_cpu_time);
if (task.has_checkpointed()) {
checkpoint_cpu_time = task.starting_cpu + task.cpu_time();