IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 3, 2021, 2:12:35 PM (5 years ago)
Author:
eugene
Message:

stop threads before freeing data when QUIT is called; fuzz added to last task execution was not correctly added to usec -- this made fast tasks run many invalid attempts

File:
1 edited

Legend:

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

    r38986 r41483  
    5252    // XXX this should be optional
    5353    fuzz = task[0].exec_period*(0.5*drand48() - 0.25);
    54     task[0].last.tv_usec = 1e6*(fuzz - (int)fuzz);
     54    task[0].last.tv_usec += 1e6*(fuzz - (int)fuzz);
    5555    task[0].last.tv_sec += (int) fuzz;
    5656
Note: See TracChangeset for help on using the changeset viewer.