1 parent c595cf6 commit 4d90571Copy full SHA for 4d90571
1 file changed
github2/request.py
@@ -72,7 +72,7 @@ def post(self, *path_components, **extra_post_data):
72
def make_request(self, path, extra_post_data=None, method="GET"):
73
if self.delay:
74
since_last = (datetime.datetime.now() - self.last_request)
75
- since_last_in_seconds = since_last.days * 24 * 60 * 60 + since_last.seconds
+ since_last_in_seconds = (since_last.days * 24 * 60 * 60) + since_last.seconds + (since_last.microseconds/1000000.0)
76
if since_last_in_seconds < self.delay:
77
duration = self.delay - since_last_in_seconds
78
if self.debug:
0 commit comments