Display correct average for requests statistics

pull/446/head
Claudiu Boriga 8 years ago
parent 74cecc09a6
commit 0ffb9e6718

@ -205,11 +205,6 @@ static void cli_incoming_list_totals(str *instr, struct streambuf *replybuffer)
deletes_ps = rtpe_totalstats_lastinterval.deletes_ps;
mutex_unlock(&rtpe_totalstats_lastinterval_lock);
// compute average offer/answer/delete time
timeval_divide(&offer_iv.time_avg, &offer_iv.time_avg, offer_iv.count);
timeval_divide(&answer_iv.time_avg, &answer_iv.time_avg, answer_iv.count);
timeval_divide(&delete_iv.time_avg, &delete_iv.time_avg, delete_iv.count);
streambuf_printf(replybuffer, "\nGraphite interval statistics (last reported values to graphite):\n");
streambuf_printf(replybuffer, " Total calls duration :%ld.%06ld\n\n",calls_dur_iv.tv_sec,calls_dur_iv.tv_usec);
streambuf_printf(replybuffer, " Min managed sessions :"UINT64F"\n", min_sess_iv);

Loading…
Cancel
Save