diff --git a/checkin_notes b/checkin_notes index aa41cb6c9d..5ba30bf967 100644 --- a/checkin_notes +++ b/checkin_notes @@ -387,3 +387,9 @@ David 13 June 2007 David 19 June 2007 example_app/ uc2_graphics.C + +David 28 June 2007 + - wrapper: report CPU time correctly when >1 job + + wrapper/ + wrapper.C diff --git a/wrapper/wrapper.C b/wrapper/wrapper.C index 7e3f217903..ab837ee987 100644 --- a/wrapper/wrapper.C +++ b/wrapper/wrapper.C @@ -67,6 +67,7 @@ struct TASK { string command_line; double final_cpu_time; double starting_cpu; + // how much CPU time was used by tasks before this in the job file #ifdef _WIN32 HANDLE pid_handle; HANDLE thread_handle; @@ -402,7 +403,11 @@ double TASK::cpu_time() { } void send_status_message(TASK& task, double frac_done) { - boinc_report_app_status(task.cpu_time(), task.starting_cpu, frac_done); + boinc_report_app_status( + task.starting_cpu + task.cpu_time(), + task.starting_cpu, + frac_done + ); } // Support for multiple tasks.