summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Shepelev <temotor@gmail.com>2017-04-12 00:53:15 +0300
committerSergey Shepelev <temotor@gmail.com>2017-04-12 00:53:15 +0300
commit1a9b17c0f4e996490d6601b0c9896222c49bb4a1 (patch)
tree2d805f722164fdde1abefd0717ffa5a091a04e88
parent1ed0c7f556656e48089aefc41476761e27c4f156 (diff)
downloadeventlet-monotonic-13.tar.gz
update monotonic 1.3 5c0322dc559bf961f7e111d97cd3ed9ab5c1a73bmonotonic-13
https://github.com/eventlet/eventlet/issues/403
-rwxr-xr-xbin/pull-monotonic2
-rw-r--r--eventlet/support/monotonic.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/bin/pull-monotonic b/bin/pull-monotonic
index 0796415..83a8991 100755
--- a/bin/pull-monotonic
+++ b/bin/pull-monotonic
@@ -1,7 +1,7 @@
#!/bin/bash
set -eux
cd "$( dirname "${BASH_SOURCE[0]}" )/.."
-version=${1-"8447153178046158fe10d927cd358e0088587bca"}
+version=${1-"5c0322dc559bf961f7e111d97cd3ed9ab5c1a73b"}
path="./eventlet/support/monotonic.py"
url="https://raw.githubusercontent.com/atdt/monotonic/${version}/monotonic.py"
rm -f ${path}
diff --git a/eventlet/support/monotonic.py b/eventlet/support/monotonic.py
index d843d82..1c1b46b 100644
--- a/eventlet/support/monotonic.py
+++ b/eventlet/support/monotonic.py
@@ -150,6 +150,8 @@ except AttributeError:
CLOCK_MONOTONIC = 4
elif 'bsd' in sys.platform:
CLOCK_MONOTONIC = 3
+ elif sys.platform.startswith('aix'):
+ CLOCK_MONOTONIC = ctypes.c_longlong(10)
def monotonic():
"""Monotonic clock, cannot go backward."""