IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23333


Ignore:
Timestamp:
Mar 15, 2009, 4:53:27 PM (17 years ago)
Author:
eugene
Message:

fix initial fuzzing to 100%

File:
1 edited

Legend:

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

    r23329 r23333  
    7474    // add random offset between 0 and 10% of exec_period
    7575    // XXX this should be optional
    76     fuzz = 0.1*task[0].exec_period*drand48();
    77     task[0].last.tv_usec = 1e6*(fuzz - (int)fuzz);
     76    fuzz = task[0].exec_period*drand48();
     77    task[0].last.tv_usec += 1e6*(fuzz - (int)fuzz);
    7878    task[0].last.tv_sec += (int) fuzz;
     79
     80    // gprint (GP_LOG, "fuzz: %f, last: %d %d\n", fuzz, task[0].last.tv_sec, task[0].last.tv_usec);
    7981  }
    8082  return;
Note: See TracChangeset for help on using the changeset viewer.