debug recall
This commit is contained in:
@@ -111,7 +111,6 @@ int parse_device_cfg_json();
|
||||
int parse_device_cfg_pg();
|
||||
int parse_line_cfg_pg();
|
||||
void init_config();
|
||||
int init_ping_telnet();
|
||||
int GetServerIndexFromDB();
|
||||
|
||||
int parse_device_cfg();
|
||||
|
||||
@@ -213,30 +213,71 @@ static ST_RET process_jou_entry(loginfo_t *loginfo,apr_time_t t,
|
||||
|
||||
length_FCDA = strlen(mms_ref);
|
||||
if (('$' == mms_ref[length_FCDA - 2]) && ('t' == mms_ref[length_FCDA - 1])) {
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>lnk20250307
|
||||
printf("readtime = 1");
|
||||
readtime = 1;
|
||||
t = convert_btime6_to_apr_time(&(mms_dec_data.data_item[ii].u.data_bTime6));
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
// <20><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD>ṹ<EFBFBD>屣<EFBFBD><E5B1A3>ת<EFBFBD><D7AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>Ϣ
|
||||
apr_time_exp_t xt;
|
||||
|
||||
// ʹ<>ñ<EFBFBD><C3B1><EFBFBD>ʱ<EFBFBD><CAB1>ת<EFBFBD><D7AA><EFBFBD><EFBFBD>Ҳ<EFBFBD><D2B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD> apr_time_exp_gmt(&xt, t) <20>õ<EFBFBD> GMT ʱ<>䣩
|
||||
if (apr_time_exp_lt(&xt, t) == APR_SUCCESS) {
|
||||
// tm_year <20><>ʾ<EFBFBD><CABE> 1900 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD> 1900<30><30>tm_mon <20><>ΧΪ 0~11<31><31><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA> 1
|
||||
printf("Converted time: %04d-%02d-%02d %02d:%02d:%02d.%06d\n",
|
||||
xt.tm_year + 1900,
|
||||
xt.tm_mon + 1,
|
||||
xt.tm_mday,
|
||||
xt.tm_hour,
|
||||
xt.tm_min,
|
||||
xt.tm_sec,
|
||||
xt.tm_usec);
|
||||
} else {
|
||||
printf("Failed to convert apr_time_t\n");
|
||||
}
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
}
|
||||
if (('$' == mms_ref[length_FCDA - 2]) && ('q' == mms_ref[length_FCDA - 1])) {
|
||||
if (log_data_type == STEADY_DATA) {
|
||||
readquailty = 1;
|
||||
char* q = mms_dec_data.data_item[ii].u.data_str;
|
||||
if (q[0] == '0' && q[1] == '0')
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>lnk20250307
|
||||
printf("q[0] = %c ,q[1] = %c !!!!!",q[0],q[1]);
|
||||
|
||||
if (q[0] == '0' && q[1] == '0'){
|
||||
quality = 0;
|
||||
else
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>lnk20250307
|
||||
printf("quality = 0");
|
||||
|
||||
}else{
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>lnk20250307
|
||||
printf("quality = 1");
|
||||
quality = 1;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
if (readtime == 1 && readquailty == 1) {
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>lnk20250307
|
||||
printf("readtime == 1 && readquailty = 1");
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (readtime == 1 && readquailty == 1) {
|
||||
if (quality == 1) {
|
||||
if (quality == 0) {//<2F><><EFBFBD>ԣ<EFBFBD>Ҫ<EFBFBD>Ļ<EFBFBD>1
|
||||
timeflag = TRUE;
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>lnk20250307
|
||||
printf("readtime == 1 && readquailty = 1 && quality == 1 continue");
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>lnk20250307
|
||||
printf("readtime == 1 && readquailty = 1 && quality == 0 log");
|
||||
|
||||
timeflag = FALSE;
|
||||
if (process_jou_entry_t == 0) {
|
||||
process_jou_entry_t = t;
|
||||
@@ -322,14 +363,26 @@ static ST_RET process_jou_entry(loginfo_t *loginfo,apr_time_t t,
|
||||
//set_db_value(LOG_IDX,mms_ref,v,FALSE);
|
||||
length_FCDA = strlen( mms_ref );
|
||||
if ( ('$'==mms_ref[length_FCDA-2]) && ('q'==mms_ref[length_FCDA-1]) ) {
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>lnk20250307
|
||||
printf("going q");
|
||||
|
||||
if(not_set_log_q_this && ( log_data_type == STEADY_DATA )) {
|
||||
int quality = 0;
|
||||
char* q = mms_dec_data.data_item[ii].u.data_str;
|
||||
if (q[0]=='0'&& q[1]=='0')
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>lnk20250307
|
||||
printf("q[0] = %c ,q[1] = %c !!!!!",q[0],q[1]);
|
||||
|
||||
if (q[0]=='0'&& q[1]=='0'){
|
||||
printf("quality = 0");
|
||||
quality = 0;
|
||||
else
|
||||
}else{
|
||||
printf("quality = 1");
|
||||
quality = 1;
|
||||
if (quality == 1) {
|
||||
}
|
||||
if (quality == 0) {//<2F><><EFBFBD><EFBFBD><EFBFBD>ã<EFBFBD>Ҫ<EFBFBD>Ļ<EFBFBD>1
|
||||
printf("quality = 1 continue");
|
||||
continue;
|
||||
}
|
||||
//set_log_QualityFlag(quality);
|
||||
@@ -346,6 +399,10 @@ static ST_RET process_jou_entry(loginfo_t *loginfo,apr_time_t t,
|
||||
}
|
||||
}
|
||||
else if ( ('$'==mms_ref[length_FCDA-2]) && ('t'==mms_ref[length_FCDA-1]) ) {
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>lnk20250307
|
||||
printf("going t");
|
||||
|
||||
if (not_set_log_t_this) {
|
||||
apr_time_t t = convert_btime6_to_apr_time(&(mms_dec_data.data_item[ii].u.data_bTime6));
|
||||
if ( log_data_type == QVVR_DATA ) {
|
||||
@@ -373,6 +430,9 @@ static ST_RET process_jou_entry(loginfo_t *loginfo,apr_time_t t,
|
||||
}
|
||||
}
|
||||
else {
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>lnk20250307
|
||||
printf("going v");
|
||||
|
||||
if ( log_data_type == QVVR_DATA ){
|
||||
processQVVR_data(loginfo->LD_info,mms_ref,v);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user