最多只记录一次原始数据
This commit is contained in:
@@ -294,7 +294,7 @@ void process_trace_command(const std::string& id, int times)
|
|||||||
QHash<int, int>& rpt_map = g_trace_map[qid];
|
QHash<int, int>& rpt_map = g_trace_map[qid];
|
||||||
for (int i = 0; i < rpt_nos.size(); ++i) {
|
for (int i = 0; i < rpt_nos.size(); ++i) {
|
||||||
int rpt_no = rpt_nos.at(i);
|
int rpt_no = rpt_nos.at(i);
|
||||||
rpt_map[rpt_no] = rpt_map.value(rpt_no, 0) + 1;
|
rpt_map[rpt_no] = 1;
|
||||||
cout << "[TRACE] mp_id=" << id << " add rpt_no=" << rpt_no
|
cout << "[TRACE] mp_id=" << id << " add rpt_no=" << rpt_no
|
||||||
<< " left=" << rpt_map.value(rpt_no) << endl;
|
<< " left=" << rpt_map.value(rpt_no) << endl;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1506,7 +1506,7 @@ ST_VOID u_iec_rpt_ind_data(MVL_VAR_ASSOC** info_va,
|
|||||||
printf("rtdata RptID match");
|
printf("rtdata RptID match");
|
||||||
if (urcbRealDataHasReceived(ied_usr->dev_idx,rpt_no,LD_info, t / 1000)){//判断时间重复
|
if (urcbRealDataHasReceived(ied_usr->dev_idx,rpt_no,LD_info, t / 1000)){//判断时间重复
|
||||||
printf("this rt report Time repeats");
|
printf("this rt report Time repeats");
|
||||||
json_trace_block_create_end(LD_info->v_wiring_type, LD_info->mp_id, rptinfo->flickerflag, rcb_info->RptID, rptinfo->rptNo);
|
//json_trace_block_create_end(LD_info->v_wiring_type, LD_info->mp_id, rptinfo->flickerflag, rcb_info->RptID, rptinfo->rptNo);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user