From: Peter Lemenkov <lemenkov@gmail.com>
Date: Sat, 23 Apr 2016 12:30:30 +0300
Subject: [PATCH] Deprecated BIF erlang:now/0
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
diff --git a/src/riak_pipe.erl b/src/riak_pipe.erl
index 9f3ec10..81031b2 100644
--- a/src/riak_pipe.erl
+++ b/src/riak_pipe.erl
@@ -680,7 +680,7 @@ example_tick(TickLen, BatchSize, NumTicks, ChainLen) ->
{ok, Pipe} = riak_pipe:exec(Specs, [{log, sink},
{trace, all}]),
_ = [begin
- _ = [ok = riak_pipe:queue_work(Pipe, {tick, {TickSeq, X}, now()})
+ _ = [ok = riak_pipe:queue_work(Pipe, {tick, {TickSeq, X}, os:timestamp()})
|| X <- lists:seq(1, BatchSize)],
if TickSeq /= NumTicks -> timer:sleep(TickLen);
true -> ok
diff --git a/src/riak_pipe_vnode.erl b/src/riak_pipe_vnode.erl
index 8487d98..517eea9 100644
--- a/src/riak_pipe_vnode.erl
+++ b/src/riak_pipe_vnode.erl
@@ -455,7 +455,7 @@ reply_archive(Pid, Fitting, Archive) ->
%%</dd><dt>
%% `started'
%%</dt><dd>
-%% An {@link erlang:now/0} tuple, indicating the time that the
+%% An {@link os:timestamp/0} tuple, indicating the time that the
%% worker started.
%%</dd><dt>
%% `processed'
@@ -478,7 +478,7 @@ reply_archive(Pid, Fitting, Archive) ->
%% Total time the worker has spent waiting for inputs (as opposed
%% to working on them). Given as an integer number of
%% microseconds. Should be roughly equal to
-%% `(now()-started)-work_time'.
+%% `(os:timestamp()-started)-work_time'.
%%</dd></dl>
-spec status(pid()) -> {partition(), [[{atom(), term()}]]}.
status(Pid) ->