Changeset 25624 for branches/eam_branches/20090715/ippTools/src/regtool.c
- Timestamp:
- Sep 27, 2009, 11:34:07 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/ippTools/src/regtool.c
r25400 r25624 224 224 PXOPT_LOOKUP_F32(teltemp_extra, config->args, "-teltemp_extra", false, false); 225 225 PXOPT_LOOKUP_F32(pon_time, config->args, "-pon_time", false, false); 226 PXOPT_LOOKUP_S16(burntool_state, config->args, "-burntool_state", false, false); 226 227 PXOPT_LOOKUP_F64(user_1, config->args, "-user_1", false, false); 227 228 PXOPT_LOOKUP_F64(user_2, config->args, "-user_2", false, false); … … 238 239 PXOPT_LOOKUP_TIME(dateobs, config->args, "-dateobs", false, false); 239 240 PXOPT_LOOKUP_STR(hostname, config->args, "-hostname", false, false); 241 PXOPT_LOOKUP_S32(bytes, config->args, "-bytes", false, false); 242 PXOPT_LOOKUP_STR(md5sum, config->args, "-md5sum", false, false); 240 243 241 244 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); … … 307 310 quality, 308 311 NULL, 309 0 312 0, 313 bytes, 314 md5sum, 315 0 // burntool_state 310 316 )) { 311 317 psError(PS_ERR_UNKNOWN, false, "database error"); … … 462 468 463 469 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 464 PXOPT_LOOKUP_F64(user_1, config->args, "-user_1", false, false); 465 466 if ((fault == INT16_MAX) && !isfinite(user_1)) { 467 psError(PS_ERR_UNKNOWN, false, "one of -fault or -user_1 must be selected"); 468 return false; 469 } 470 if ((fault != INT16_MAX) && isfinite(user_1)) { 471 psError(PS_ERR_UNKNOWN, false, "only one of -fault or -user_1 must be selected"); 470 /* PXOPT_LOOKUP_F64(user_1, config->args, "-user_1", false, false); */ 471 PXOPT_LOOKUP_S16(burntool_state, config->args, "-burntool_state", false, false); 472 473 if ((fault == INT16_MAX) && !isfinite(burntool_state)) { 474 psError(PS_ERR_UNKNOWN, false, "one of -fault or -burntool_state must be selected"); 475 return false; 476 } 477 if ((fault != INT16_MAX) && isfinite(burntool_state)) { 478 psError(PS_ERR_UNKNOWN, false, "only one of -fault or -burntool_state must be selected"); 472 479 return false; 473 480 } … … 486 493 } 487 494 488 if (isfinite( user_1)) {495 if (isfinite(burntool_state)) { 489 496 psString query = pxDataGet("regtool_updateprocessedimfile.sql"); 490 497 if (!query) { … … 493 500 } 494 501 495 if (!p_psDBRunQueryF(config->dbh, query, user_1, exp_id, class_id)) {502 if (!p_psDBRunQueryF(config->dbh, query, burntool_state, exp_id, class_id)) { 496 503 psError(PS_ERR_UNKNOWN, false, "database error"); 497 504 psFree(query);
Note:
See TracChangeset
for help on using the changeset viewer.
