aboutsummaryrefslogtreecommitdiff
path: root/src/extauth.erl
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2019-02-27 09:56:20 +0100
committerPaweł Chmielowski <pchmielowski@process-one.net>2019-02-27 09:56:31 +0100
commit538f35d05a9bb25f24b30ea43b07a36cfc043e12 (patch)
treeedb9621c8b41f5482b6fd9da7871c2b062b00fc8 /src/extauth.erl
parentRemove now() calls that sneaked in in pull requests (diff)
Replace code using p1_time_compat wrapper with native functions
Since we now require R19, we shouldn't need that anymore. There are still couple places where p1_time_compat:unique_timestamp() is used as there is no direct equivalent.
Diffstat (limited to 'src/extauth.erl')
-rw-r--r--src/extauth.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extauth.erl b/src/extauth.erl
index ace340f72..c617e6c26 100644
--- a/src/extauth.erl
+++ b/src/extauth.erl
@@ -171,7 +171,7 @@ code_change(_OldVsn, State, _Extra) ->
%%%===================================================================
-spec curr_time() -> non_neg_integer().
curr_time() ->
- p1_time_compat:monotonic_time(milli_seconds).
+ erlang:monotonic_time(millisecond).
-spec start_port(string()) -> {port(), integer() | undefined}.
start_port(Path) ->
@@ -188,7 +188,7 @@ call_port(Server, Args) ->
call_port(Server, Args, ?CALL_TIMEOUT).
call_port(Server, Args, Timeout) ->
- StartTime = p1_time_compat:monotonic_time(milli_seconds),
+ StartTime = erlang:monotonic_time(millisecond),
Pool = pool_name(Server),
PoolSize = pool_size(Server),
I = p1_rand:round_robin(PoolSize),