red_calc_qavg_from_idle_time
return red_calc_qavg_from_idle_time(p, v);
qavg = red_calc_qavg_from_idle_time(p, v);