diff --git a/daemon/call.c b/daemon/call.c index fb3a8ca4f..3451ab724 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -65,6 +65,7 @@ struct xmlrpc_helper { struct global_stats_gauge rtpe_stats_gauge; struct global_stats_ax rtpe_stats; +struct global_stats_counter rtpe_stats_interval; struct global_stats_counter rtpe_stats_cumulative; struct global_stats_ax rtpe_stats_graphite; struct global_stats_counter rtpe_stats_graphite_interval; @@ -547,7 +548,7 @@ void call_timer(void *ptr) { call_timer_iterator(c, &hlp); ITERATE_CALL_LIST_NEXT_END(c); - stats_counters_ax_calc_avg(&rtpe_stats, run_diff_us, NULL); + stats_counters_ax_calc_avg(&rtpe_stats, run_diff_us, &rtpe_stats_interval); stats_counters_min_max(&rtpe_stats_graphite_min_max, &rtpe_stats.intv); diff --git a/include/call.h b/include/call.h index b2238ba5f..8dcf481bc 100644 --- a/include/call.h +++ b/include/call.h @@ -543,6 +543,7 @@ extern struct call_iterator_list rtpe_call_iterators[NUM_CALL_ITERATORS]; extern struct global_stats_gauge rtpe_stats_gauge; extern struct global_stats_ax rtpe_stats; +extern struct global_stats_counter rtpe_stats_interval; // accumulators copied out once per interval extern struct global_stats_counter rtpe_stats_cumulative; // total, cumulative extern struct global_stats_ax rtpe_stats_graphite; extern struct global_stats_counter rtpe_stats_graphite_interval; // copied out when graphite stats run