mirror of https://github.com/BOINC/boinc.git
- wrapper: fix fraction-done bug
svn path=/trunk/boinc/; revision=19880
This commit is contained in:
parent
a3f80676b7
commit
04ea096e62
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue