Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OTP 18 #35

Merged
merged 2 commits into from
Aug 3, 2015
Merged

Add OTP 18 #35

merged 2 commits into from
Aug 3, 2015

Conversation

surik
Copy link
Contributor

@surik surik commented Aug 3, 2015

Relate to #33

@@ -24,7 +24,7 @@

%% @doc initialize a counter structure
init_counter(Key = {_ServerIP, ServerPort}) when is_integer(ServerPort) ->
#server_counter{key = Key, upTime = now(), resetTime = now()};
#server_counter{key = Key, upTime = os:timestamp(), resetTime = os:timestamp()};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

os:timestamp/0 is not the same a erlang:now/0 was, simply replacing one with other might not be the correct solution.

See http:https://www.erlang.org/doc/apps/erts/time_correction.html#id76661 and http:https://www.erlang.org/doc/apps/erts/time_compat.erl for better ways to handle this.

@surik
Copy link
Contributor Author

surik commented Aug 3, 2015

@RoadRunnr thanks for your remarks, I've fixed it.

@RoadRunnr
Copy link
Member

@surik: almost there, we still need to support tetrapak and it's check target. It now failes on R17 with:

$ tetrapak check
== check:xref ====================
Undefined Functions called:
  erlang:timestamp/0
    by eradius_lib:timestamp/0
Error: xref error

Please add xref override to tetrapak/config.ini, something like:

[xref]
ignore_undef = [ { erlang, timestamp, 0 } ]

@surik
Copy link
Contributor Author

surik commented Aug 3, 2015

done

RoadRunnr pushed a commit that referenced this pull request Aug 3, 2015
@RoadRunnr RoadRunnr merged commit 4dd8c18 into travelping:master Aug 3, 2015
@surik surik deleted the otp18 branch March 8, 2018 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants