diff options
author | Zuul <zuul@review.opendev.org> | 2023-05-09 16:37:58 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2023-05-09 16:37:58 +0000 |
commit | f70053f2aaa8b8d46690c94530bb2fb5f908347c (patch) | |
tree | 1d3ca00edea5b638ab5fdfe189c536e0d08854af /designate/backend/impl_dynect.py | |
parent | f194b33bd3a8b9e6255f6dad74b1d09b0d74ff13 (diff) | |
parent | 437d2d96393b616c306a7886ce13d9220ca95207 (diff) | |
download | designate-f70053f2aaa8b8d46690c94530bb2fb5f908347c.tar.gz |
Merge "Use monotonic time to protect from system time jumps"
Diffstat (limited to 'designate/backend/impl_dynect.py')
-rwxr-xr-x | designate/backend/impl_dynect.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/designate/backend/impl_dynect.py b/designate/backend/impl_dynect.py index 19f586f5..7e30443c 100755 --- a/designate/backend/impl_dynect.py +++ b/designate/backend/impl_dynect.py @@ -202,11 +202,11 @@ class DynClient(object): self._http_log_req(method, url, kwargs) if self.timings: - start_time = time.time() + start_time = time.monotonic() resp = self.http.request(method, url, **kwargs) if self.timings: self.times.append(("%s %s" % (method, url), - start_time, time.time())) + start_time, time.monotonic())) self._http_log_resp(resp) if resp.status_code >= 400: |