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
pull/1646/head
Donat Zenichev 2 years ago
parent c1b12719d6
commit 2a4f2dbf33

@ -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,

Loading…
Cancel
Save