IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34001


Ignore:
Timestamp:
Jun 10, 2012, 2:44:33 PM (14 years ago)
Author:
eugene
Message:

add -all-pid to hosts purge-temp; fix unused vars

Location:
branches/eam_branches/ipp-20120601/Ohana/src/opihi/dvo
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120601/Ohana/src/opihi/dvo/fitsed.c

    r33985 r34001  
    8080  /* load photcode information */
    8181  if (!InitPhotcodes ()) goto escape;
    82   int Nsecfilt = GetPhotcodeNsecfilt ();
     82  // int Nsecfilt = GetPhotcodeNsecfilt ();
    8383
    8484  /* interpret command-line options */
  • branches/eam_branches/ipp-20120601/Ohana/src/opihi/dvo/hosts.c

    r33963 r34001  
    1515  if (!strncmp(argv[1], "purge-temp", MAX(strlen(argv[1]), 3))) {
    1616    glob_t pglob;
     17    int ALL_PID = FALSE;
    1718    int PID = getpid();
    1819    int N;
     
    2021      remove_argument (N, &argc, argv);
    2122      PID = atoi(argv[N]);
     23      remove_argument (N, &argc, argv);
     24    }
     25
     26    if ((N = get_argument (argc, argv, "-all-pid"))) {
     27      remove_argument (N, &argc, argv);
     28      ALL_PID = TRUE;
    2229      remove_argument (N, &argc, argv);
    2330    }
     
    6067      pglob.gl_offs = 0;
    6168      char name[DVO_MAX_PATH];
    62       snprintf (name, DVO_MAX_PATH, "%s/dvo.results.%05d.*.fits", table->hosts[i].pathname, PID);
     69      if (ALL_PID) {
     70        snprintf (name, DVO_MAX_PATH, "%s/dvo.results.*.*.fits", table->hosts[i].pathname);
     71      } else {
     72        snprintf (name, DVO_MAX_PATH, "%s/dvo.results.%05d.*.fits", table->hosts[i].pathname, PID);
     73      }
    6374      if (VERBOSE) gprint (GP_ERR, "checking %s\n", name);
    6475      glob (name, 0, NULL, &pglob);
  • branches/eam_branches/ipp-20120601/Ohana/src/opihi/dvo/objectcoverage.c

    r33985 r34001  
    66
    77  int ShowDensity;
    8   int N, status, TimeSelect, xs, ys;
     8  int N, status, xs, ys;
    99  double pixscale, r, d, Xs, Ys, RaCenter, DecCenter;
    1010  char projection[16];
Note: See TracChangeset for help on using the changeset viewer.