| 204 | } |
| 205 | |
| 206 | static double calc_drop_rate(uint32_t enqueued, uint32_t dropped) |
| 207 | { |
| 208 | return (double)dropped / ((double)enqueued + (double)dropped); |
| 209 | } |
| 210 | |
| 211 | /** |
| 212 | * calculate the drop probability |
no outgoing calls
no test coverage detected