Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#792 closed Defect (fixed)

wrapper does not save cpu time on legacy checkpointing

Reported by: yoyo Owned by: davea
Priority: Major Milestone: Undetermined
Component: BOINC - API Version: 6.2.19
Keywords: wrapper Cc:

Description (last modified by Nicolas)

The wrapper does not store cpu time in its checkpoint.txt file, if the legacy application writes its checkpoint file. To solve it I reverted method send_status_message() to its old version and in the main while (1) loop I added the following:

    poll_boinc_messages(task);
    send_status_message(task, frac_done);
    // begin yoyo
    if (task.has_checkpointed()) {
      write_checkpoint(i, cpu + task.cpu_time());
    }
    // end yoyo
    boinc_sleep(POLL_PERIOD);

Change History (3)

comment:1 Changed 15 years ago by Nicolas

Component: UndeterminedBOINC - API
Owner: set to davea

comment:2 Changed 15 years ago by Nicolas

Description: modified (diff)

comment:3 Changed 15 years ago by davea

Resolution: fixed
Status: newclosed

(In [16645]) - manager: clamp percentages at [0,100] in prefs dialog

fixes #794

  • wrapper: if app checkpoints, write CPU time to checkpoint file

fixes #792 (I hope)

Note: See TracTickets for help on using tickets.