IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11324


Ignore:
Timestamp:
Jan 26, 2007, 1:40:50 PM (19 years ago)
Author:
eugene
Message:

fixed task npending

Location:
trunk/Ohana/src/opihi
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/book_commands.c

    r11081 r11324  
    363363  }
    364364
     365  Optional = FALSE;
     366  if ((N = get_argument (argc, argv, "-optional"))) {
     367    remove_argument (N, &argc, argv);
     368    Optional = TRUE;
     369  }
     370
    365371  if (argc != 4) {
    366372    gprint (GP_ERR, "USAGE: book newword (book) (page) (word)\n");
     
    385391  value = BookGetWord (page, argv[3]);
    386392  if (value == NULL) {
     393    if (Optional) {
     394      FREE (varName);
     395      return TRUE;
     396    }
    387397    gprint (GP_ERR, "value %s on page %s in book %s not found\n", argv[3], argv[2], argv[1]);
    388398    FREE (varName);
  • trunk/Ohana/src/opihi/pantasks/CheckTasks.c

    r11317 r11324  
    2525    }
    2626    if (task[0].NpendingMax && (task[0].Npending >= task[0].NpendingMax)) {
    27         gettimeofday (&task[0].last, (void *) NULL);
    28         continue;
    29     }
    30 
    31     /* check if there are errors with this task */
    32     if (!ValidateTask (task, TRUE)) {
     27        fprintf (stderr, "npending: %d, max npending: %d\n", task[0].Npending, task[0].NpendingMax);
    3328        gettimeofday (&task[0].last, (void *) NULL);
    3429        continue;
     
    4237          continue;
    4338      }
     39    }
     40
     41    /* check if there are errors with this task */
     42    if (!ValidateTask (task, TRUE)) {
     43        gettimeofday (&task[0].last, (void *) NULL);
     44        continue;
    4445    }
    4546
  • trunk/Ohana/src/opihi/pantasks/TaskOps.c

    r11084 r11324  
    400400
    401401  NewTask[0].NpendingMax = 0;  /* default value means 'no limit' */
     402  NewTask[0].Npending = 0;  /* default value means 'no limit' */
    402403
    403404  NewTask[0].Njobs = 0;
Note: See TracChangeset for help on using the changeset viewer.