Revision d0f12668 util/rateLimiter.c
util/rateLimiter.c | ||
---|---|---|
114 | 114 |
bib_then = now; |
115 | 115 |
return OK; |
116 | 116 |
} else { |
117 |
long leaked;
|
|
117 |
unsigned int leaked;
|
|
118 | 118 |
int total_drain_secs = bytes_in_bucket / (drain_rate) + 1; |
119 | 119 |
|
120 | 120 |
if(now.tv_sec - bib_then.tv_sec - 1 > total_drain_secs) { |
Also available in: Unified diff