Changeset 35176 for trunk/Ohana
- Timestamp:
- Feb 17, 2013, 2:24:20 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/dvopsps/src/insert_detections_dvopsps.c
r35098 r35176 110 110 HostTable *table = HostTableLoad (CATDIR, sky->hosts); 111 111 112 char uniquer[12]; 113 int TIME = time(NULL); 114 int PID = getpid(); 115 snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000); 116 112 117 int i; 113 118 for (i = 0; i < table->Nhosts; i++) { … … 121 126 // XXX need to uniquify the result file 122 127 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); 124 129 } 125 130
Note:
See TracChangeset
for help on using the changeset viewer.
