IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35176 for trunk/Ohana


Ignore:
Timestamp:
Feb 17, 2013, 2:24:20 PM (13 years ago)
Author:
eugene
Message:

make dvopsps detection table unique (need to cleanup...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/dvopsps/src/insert_detections_dvopsps.c

    r35098 r35176  
    110110  HostTable *table = HostTableLoad (CATDIR, sky->hosts);
    111111
     112  char uniquer[12];
     113  int TIME = time(NULL);
     114  int PID = getpid();
     115  snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000);
     116
    112117  int i;
    113118  for (i = 0; i < table->Nhosts; i++) {
     
    121126      // XXX need to uniquify the result file
    122127      ALLOCATE (table->hosts[i].results, char, 1024);
    123       snprintf (table->hosts[i].results, 1024, "%s/dvopsps_detections.dat", table->hosts[i].pathname);
     128      snprintf (table->hosts[i].results, 1024, "%s/dvopsps.%s.det.dat", table->hosts[i].pathname, uniquer);
    124129    }
    125130
Note: See TracChangeset for help on using the changeset viewer.