update monotonic 1.3 5c0322dc559bf961f7e111d97cd3ed9ab5c1a73b

https://github.com/eventlet/eventlet/issues/403
This commit is contained in:
Sergey Shepelev
2017-04-12 00:53:15 +03:00
parent 1ed0c7f556
commit 1a9b17c0f4
2 changed files with 3 additions and 1 deletions

View File

@@ -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}

View File

@@ -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."""