OpenMPI
0.1.1
|
A token bucket is an internal structure that tracks how many bytes we are currently willing to read or write on a given bufferevent or group of bufferevents. More...
#include <ratelim-internal.h>
Data Fields | |
ev_ssize_t | read_limit |
How many bytes are we willing to read or write right now? These values are signed so that we can do "defecit spending". | |
ev_ssize_t | write_limit |
ev_uint32_t | last_updated |
When was this bucket last updated? Measured in abstract 'ticks' relative to the token bucket configuration. More... | |
A token bucket is an internal structure that tracks how many bytes we are currently willing to read or write on a given bufferevent or group of bufferevents.
ev_uint32_t ev_token_bucket::last_updated |
When was this bucket last updated? Measured in abstract 'ticks' relative to the token bucket configuration.