diff --git a/checkin_notes b/checkin_notes index fe6447f926..4714622a4b 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/samples/wrapper/wrapper.cpp b/samples/wrapper/wrapper.cpp index acb90f8c3e..375bada337 100644 --- a/samples/wrapper/wrapper.cpp +++ b/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();