Takes the relative time to determine the next time to drop. returns the next time to drop a object.
| 211 | // Takes the relative time to determine the next time to drop. |
| 212 | // returns the next time to drop a object. |
| 213 | uint64_t NextDrop(uint64_t cur_time) { |
| 214 | return cur_time + window_ * pow(drop_count_, -.5); |
| 215 | } |
| 216 | |
| 217 | // Gets the next object from the queue and determines based on current state, |
| 218 | // whether set the passed drop boolean to true(to tell the calling function to |
nothing calls this directly
no outgoing calls
no test coverage detected