IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 11, 2007, 4:51:41 PM (20 years ago)
Author:
eugene
Message:

added timing stats, npending limit

File:
1 edited

Legend:

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

    r7917 r11055  
    2020  return (FALSE);
    2121}
     22
     23int task_npending (int argc, char **argv) {
     24
     25  Task *task;
     26
     27  if (argc != 2) goto usage;
     28
     29  task = GetNewTask ();
     30  if (task == NULL) {
     31    gprint (GP_ERR, "ERROR: not defining or running a task\n");
     32    return (FALSE);
     33  }
     34
     35  task[0].NpendingMax = atoi (argv[1]);
     36  return (TRUE);
     37
     38usage:
     39  gprint (GP_ERR, "USAGE: npending N\n");
     40  return (FALSE);
     41}
Note: See TracChangeset for help on using the changeset viewer.