Update ratelimit.c

fix bug in ratelimit