diff --git a/disco/api/ratelimit.py b/disco/api/ratelimit.py index ab50488..94cd4b3 100644 --- a/disco/api/ratelimit.py +++ b/disco/api/ratelimit.py @@ -70,8 +70,8 @@ class RouteState(LoggingClass): if 'X-RateLimit-Remaining' not in response.headers: return - self.remaining = int(response.headers.get('X-RateLimit-Remaining')) - self.reset_time = int(response.headers.get('X-RateLimit-Reset')) + self.remaining = int(float(response.headers.get('X-RateLimit-Remaining'))) + self.reset_time = int(float(response.headers.get('X-RateLimit-Reset'))) def wait(self, timeout=None): """