diff options
| author | liuchang <[email protected]> | 2023-08-08 10:02:10 +0000 |
|---|---|---|
| committer | liuchang <[email protected]> | 2023-08-08 10:02:10 +0000 |
| commit | ce5a1ae194daa8cee5f54fe86bc4a324f6a57fce (patch) | |
| tree | a7b763fadb7799aee4ea8a16cb9540b66ea82ac1 /shaping/test/gtest_shaper.cpp | |
| parent | 099951d0bd691f35c675df6dbff3031a1a522ee6 (diff) | |
add feature aqm temp codefeature_aqm
Diffstat (limited to 'shaping/test/gtest_shaper.cpp')
| -rw-r--r-- | shaping/test/gtest_shaper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shaping/test/gtest_shaper.cpp b/shaping/test/gtest_shaper.cpp index a1a9b77..c292f91 100644 --- a/shaping/test/gtest_shaper.cpp +++ b/shaping/test/gtest_shaper.cpp @@ -341,7 +341,7 @@ TEST(single_session, tcp_tx_in_order) /***********send stat data here********************/ stub_curr_time_inc(STUB_TIME_INC_FOR_METRIC_SEND);//inc time to send metric - shaper_stat_refresh(ctx->thread_ctx[0].stat, sf, ctx->thread_ctx[0].thread_index, 1); + shaper_stat_refresh(&ctx->thread_ctx[0], sf, ctx->thread_ctx[0].thread_index, 1); fieldstat_dynamic_passive_output(ctx->stat->instance);//send metric manualy sleep(2);//wait telegraf generate metric @@ -1578,7 +1578,7 @@ TEST(statistics, udp_queueing_pkt) /***********send stat data here********************/ stub_curr_time_inc(STUB_TIME_INC_FOR_METRIC_SEND);//inc time to send metric - shaper_stat_refresh(ctx->thread_ctx[0].stat, sf, ctx->thread_ctx[0].thread_index, 1); + shaper_stat_refresh(&ctx->thread_ctx[0], sf, ctx->thread_ctx[0].thread_index, 1); fieldstat_dynamic_passive_output(ctx->stat->instance);//send metric manualy shaper_global_stat_refresh(ctx->global_stat); sleep(2);//wait telegraf generate metric |
