From 1a9b17c0f4e996490d6601b0c9896222c49bb4a1 Mon Sep 17 00:00:00 2001 From: Sergey Shepelev Date: Wed, 12 Apr 2017 00:53:15 +0300 Subject: [PATCH] update monotonic 1.3 5c0322dc559bf961f7e111d97cd3ed9ab5c1a73b https://github.com/eventlet/eventlet/issues/403 --- bin/pull-monotonic | 2 +- eventlet/support/monotonic.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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."""