Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions rdoclient/rdoclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -2592,7 +2592,7 @@ def get_requests_left(self):
try:
# Python 2.7
if self._requests_left is None or \
time.clock() > (self._last_response_received_time
time.process_time() > (self._last_response_received_time
+ _ALLOWANCE_STATE_REFRESH_SECONDS):
self._get_usage()
except AttributeError:
Expand Down Expand Up @@ -2640,7 +2640,7 @@ def get_bits_left(self):
try:
# Python 2.7
if self._bits_left is None or \
time.clock() > (self._last_response_received_time
time.process_time() > (self._last_response_received_time
+ _ALLOWANCE_STATE_REFRESH_SECONDS):
self._get_usage()
except AttributeError:
Expand Down Expand Up @@ -2743,7 +2743,7 @@ def _send_request_core(self, request):
self._advisory_delay_lock.acquire()
try:
# Python 2.7
wait = self._advisory_delay - (time.clock()
wait = self._advisory_delay - (time.process_time()
- self._last_response_received_time)
except AttributeError:
# Python 3.3+
Expand Down Expand Up @@ -2913,7 +2913,7 @@ def _send_request_core(self, request):

try:
# Python 2.7
self._last_response_received_time = time.clock()
self._last_response_received_time = time.process_time()
except AttributeError:
# Python 3.3+
self._last_response_received_time = time.process_time()
Expand Down