Skip to content

Commit

Permalink
Return :erlang.system_time() to timestamp_postfix
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmi committed Jun 10, 2024
1 parent 8974b10 commit 88a422f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/composite.ex
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ defmodule Strom.Composite do
end

defp timestamp_postfix do
System.os_time()
:erlang.system_time()
|> rem(round(1.0e9))
|> to_string()
end
Expand Down
4 changes: 4 additions & 0 deletions test/gen_mix_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ defmodule Strom.GenMixTest do
assert Enum.sort(Enum.to_list(flow[:odd])) == [1, 3, 7, 9]
assert Enum.sort(Enum.to_list(flow[:even])) == [2, 4, 8, 10]
assert Enum.sort(Enum.to_list(flow[:numbers3])) == [0, 0, 0, 0, 0]

GenMix.stop(pid)
end

test "massive call" do
Expand Down Expand Up @@ -71,5 +73,7 @@ defmodule Strom.GenMixTest do

Task.await(task1, :infinity)
Task.await(task2, :infinity)

GenMix.stop(pid)
end
end

0 comments on commit 88a422f

Please sign in to comment.