MCPcopy Create free account
hub / github.com/F-Stack/f-stack / calc_exp_avg_on_empty

Function calc_exp_avg_on_empty

dpdk/app/test/test_red.c:201–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201static double calc_exp_avg_on_empty(double avg, uint32_t n, uint32_t time_diff)
202{
203 return avg * pow((1.0 - 1.0 / (double)n), (double)time_diff / pkt_time_usec);
204}
205
206static double calc_drop_rate(uint32_t enqueued, uint32_t dropped)
207{

Callers 3

func_test3Function · 0.85
func_test6Function · 0.85
perf2_testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected