add comment

This commit is contained in:
lnk
2025-12-22 11:42:02 +08:00
parent c5ded4c032
commit 1014aeafbc
2 changed files with 9 additions and 0 deletions

View File

@@ -2922,11 +2922,19 @@ bool compare_qvvr_and_file(const std::string& cfg_path, std::vector<qvvr_data>&
// 遍历所有暂态事件,查找与 trig_tm 匹配的 // 遍历所有暂态事件,查找与 trig_tm 匹配的
for (auto& data : data_list) { for (auto& data : data_list) {
long long diff = static_cast<long long>(data.QVVR_time) - trig_tm; 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) { if (std::abs(diff) <= 1) {
data.is_pair = true; // 标记为已匹配 data.is_pair = true; // 标记为已匹配
matched_data = data; // 返回匹配到的事件 matched_data = data; // 返回匹配到的事件
std::cout << "[调试] 匹配成功diff=" << diff << "\n";
return true; return true;
} }
} }

View File

@@ -300,6 +300,7 @@ extern bool normalOutputEnabled;
"G_TEST_NUM=<num> - Set the G_TEST_NUM\r\n" "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" "G_TEST_TYPE=<num> - Set the G_TEST_TYPE 0:use ledger,1:use number\r\n"
"LOG=<bool> - Set the LOG\r\n" "LOG=<bool> - Set the LOG\r\n"
"MAX=<int> - Set the MAX_ITEMS\r\n"
"dir - Execute rocketmq_test_getdir\r\n" "dir - Execute rocketmq_test_getdir\r\n"
"rc - Execute rocketmq_test_rc\r\n" "rc - Execute rocketmq_test_rc\r\n"
"rt - Execute rocketmq_test_rt\r\n" "rt - Execute rocketmq_test_rt\r\n"