From 2a4f2dbf33468345657de0eb21b5876dbaebd19a Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Tue, 2 May 2023 16:48:58 +0200 Subject: [PATCH] MT#57335 Update the test-stats due to changes in the `call_timer()` We have to call the `stats_rate_min_max()` now explicitely from the test-stats.c, because the `call_timer()` is not anymore responsible for providing call rate stats. Change-Id: Id896ac086660a94b8d1d6fe520b1aa68791cd351 --- t/test-stats.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/test-stats.c b/t/test-stats.c index 73d903524..70c9f47bc 100644 --- a/t/test-stats.c +++ b/t/test-stats.c @@ -3231,18 +3231,21 @@ int main(void) { // test cmd_ps_min/max/avg call_timer(NULL); + stats_rate_min_max(&rtpe_rate_graphite_min_max, &rtpe_stats_rate); RTPE_STATS_ADD(ng_commands[NGC_OFFER], 100); rtpe_now.tv_sec += 2; RTPE_STATS_ADD(ng_commands[NGC_OFFER], 20); call_timer(NULL); + stats_rate_min_max(&rtpe_rate_graphite_min_max, &rtpe_stats_rate); // timer run time interval increased rtpe_now.tv_sec += 5; RTPE_STATS_ADD(ng_commands[NGC_OFFER], 200); call_timer(NULL); + stats_rate_min_max(&rtpe_rate_graphite_min_max, &rtpe_stats_rate); graph_str = print_graphite_data(); assert_g_string_eq(graph_str,