add comment
This commit is contained in:
@@ -2922,11 +2922,19 @@ bool compare_qvvr_and_file(const std::string& cfg_path, std::vector<qvvr_data>&
|
||||
// 遍历所有暂态事件,查找与 trig_tm 匹配的
|
||||
for (auto& data : data_list) {
|
||||
long long diff = static_cast<long long>(data.QVVR_time) - trig_tm;
|
||||
|
||||
std::cout << "[调试] QVVR_time=" << data.QVVR_time
|
||||
<< ", trig_tm=" << trig_tm
|
||||
<< ", diff=" << diff << "\n";
|
||||
|
||||
if (std::abs(diff) <= 1) {
|
||||
|
||||
data.is_pair = true; // 标记为已匹配
|
||||
|
||||
matched_data = data; // 返回匹配到的事件
|
||||
|
||||
std::cout << "[调试] 匹配成功,diff=" << diff << "\n";
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -300,6 +300,7 @@ extern bool normalOutputEnabled;
|
||||
"G_TEST_NUM=<num> - Set the G_TEST_NUM\r\n"
|
||||
"G_TEST_TYPE=<num> - Set the G_TEST_TYPE 0:use ledger,1:use number\r\n"
|
||||
"LOG=<bool> - Set the LOG\r\n"
|
||||
"MAX=<int> - Set the MAX_ITEMS\r\n"
|
||||
"dir - Execute rocketmq_test_getdir\r\n"
|
||||
"rc - Execute rocketmq_test_rc\r\n"
|
||||
"rt - Execute rocketmq_test_rt\r\n"
|
||||
|
||||
Reference in New Issue
Block a user