Skip to content

Commit

Permalink
hibari >> GH51 - Update for Erlang/OTP 18
Browse files Browse the repository at this point in the history
- Add "18" to require_otp_vsn of rebar.config.
- Replace deprecated erlang:now/0 with gmt_time_otp18:timestamp/0.
  • Loading branch information
tatsuya6502 committed Nov 9, 2015
1 parent 66a743b commit 7ce42df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
%%% -*- mode: erlang -*-

%% Require OTP version R13B04, R14, R15, R16, or 17
{require_otp_vsn, "R13B04|R14|R15|R16|17"}.
{require_otp_vsn, "R13B04|R14|R15|R16|17|18"}.

%% Depends
{deps_dir, "../"}.
Expand Down
3 changes: 2 additions & 1 deletion src/congestion_watcher_server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ what_info([Label|T], HLWDict, Acc) ->

do_mark(WC, State) ->
%% Use timestamp in same format as logfile to monitor logging timeliness.
Timestamp = gmt_util:cal_to_bignumstr(calendar:now_to_local_time(erlang:now())),
Now = gmt_time_otp18:timestamp(),
Timestamp = gmt_util:cal_to_bignumstr(calendar:now_to_local_time(Now)),
What = WC#watchee_config.restrict_what,
WhatInfo = what_info(What, State),
?ELOG_INFO("mark: ~s ~p", [Timestamp, WhatInfo]),
Expand Down

0 comments on commit 7ce42df

Please sign in to comment.