log_ratelimit
int log_ratelimit(struct log_ratelimit_ctx *rl, time_t now, int *active,
ratelimited = log_ratelimit(rl, time(NULL), NULL, &ndropped);