IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 15, 2009, 11:13:18 AM (17 years ago)
Author:
eugene
Message:

better fuzzing of task exec periods

File:
1 edited

Legend:

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

    r15872 r23329  
    4848    // add random offset between 0 and 5% of exec_period
    4949    // XXX this should be optional
    50     fuzz = 0.05*task[0].exec_period*drand48() + 1e-6*task[0].last.tv_usec;
     50    fuzz = 0.1*task[0].exec_period*drand48();
    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.