Changeset 34808
- Timestamp:
- Dec 13, 2012, 2:58:06 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/src/Dvo.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/src/Dvo.c
r34806 r34808 21 21 if (this->mysql) mysql_close(this->mysql); 22 22 23 free(this); 23 // libohana redirects free and gets confused by thigns allocated by calloc 24 // so call the real free funtion through this warpper 25 real_free(this); 24 26 } 25 27 … … 94 96 PhotCode *code = GetPhotcodebyCode(meas->photcode); 95 97 sprintf(sql, 96 "INSERT INTO dvoDetection (imageID, ippDetectID, detectID, ippObjID, objID, flags, zp, zpErr, airMass, expTime, ra, dec_, raErr, decErr) VALUES (%d, %u, %lu, %lu, %lu, %u, %f, %f, %f, %f, %lf, %lf, %f %f)",98 "INSERT INTO dvoDetection (imageID, ippDetectID, detectID, ippObjID, objID, flags, zp, zpErr, airMass, expTime, ra, dec_, raErr, decErr) VALUES (%d, %u, %lu, %lu, %lu, %u, %f, %f, %f, %f, %lf, %lf, %f, %f)", 97 99 image->imageID, // imageID 98 100 meas->detID, // ippDetectID 99 101 meas->extID, // detectID 100 102 (uint64_t)ave->catID*1000000000 + (uint64_t)ave->objID, // ippObjID 101 dvoDetections[i].ave.extID, // objID102 meas->dbFlags, // flags103 ave->extID, // objID 104 meas->dbFlags, // flags 103 105 code->C * 0.001 + code->K * (meas->airmass - 1) - meas->Mcal, // zp 104 meas->dMcal, // zpErr106 meas->dMcal, // zpErr 105 107 meas->airmass, 106 108 pow(10.0, 0.4 * meas->dt), // expTime
Note:
See TracChangeset
for help on using the changeset viewer.
