diff --git a/LFtid1056/cloudfront/code/cfg_parser.cpp b/LFtid1056/cloudfront/code/cfg_parser.cpp index 81f4bf1..f608b2e 100644 --- a/LFtid1056/cloudfront/code/cfg_parser.cpp +++ b/LFtid1056/cloudfront/code/cfg_parser.cpp @@ -2922,11 +2922,19 @@ bool compare_qvvr_and_file(const std::string& cfg_path, std::vector& // 遍历所有暂态事件,查找与 trig_tm 匹配的 for (auto& data : data_list) { long long diff = static_cast(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; } } diff --git a/LFtid1056/cloudfront/code/worker.cpp b/LFtid1056/cloudfront/code/worker.cpp index 3fb8cbd..e1ac255 100644 --- a/LFtid1056/cloudfront/code/worker.cpp +++ b/LFtid1056/cloudfront/code/worker.cpp @@ -300,6 +300,7 @@ extern bool normalOutputEnabled; "G_TEST_NUM= - Set the G_TEST_NUM\r\n" "G_TEST_TYPE= - Set the G_TEST_TYPE 0:use ledger,1:use number\r\n" "LOG= - Set the LOG\r\n" + "MAX= - 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"