WRAPPER: Use new graphics_status API to inform htmlgfx what is going on.

This commit is contained in:
Rom Walton 2014-12-26 17:43:00 -05:00
parent f8be188baf
commit 8963495ec4
1 changed files with 6 additions and 0 deletions

View File

@ -1142,6 +1142,12 @@ int main(int argc, char** argv) {
check_trickle_period();
}
boinc_write_graphics_status(
task.starting_cpu + cpu_time,
checkpoint_cpu_time + task.elapsed_time,
frac_done + task.weight/total_weight
);
boinc_sleep(POLL_PERIOD);
if (!task.suspended) {
task.elapsed_time += POLL_PERIOD;