IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23541 for trunk/Ohana


Ignore:
Timestamp:
Mar 26, 2009, 8:56:34 AM (17 years ago)
Author:
eugene
Message:

another attempt to randomize the task exec time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pantasks/CheckTasks.c

    r23530 r23541  
    4848    // add random offset between 0 and 5% of exec_period
    4949    // XXX this should be optional
    50     fuzz = 0.1*task[0].exec_period*drand48();
     50    fuzz = task[0].exec_period*(0.5*drand48() - 0.25);
    5151    task[0].last.tv_usec = 1e6*(fuzz - (int)fuzz);
    5252    task[0].last.tv_sec += (int) fuzz;
Note: See TracChangeset for help on using the changeset viewer.