diff options
author | Lars Thorsen <[email protected]> | 2015-04-24 09:51:50 +0200 |
---|---|---|
committer | Lars Thorsen <[email protected]> | 2015-05-08 12:32:15 +0200 |
commit | 1e115b3e972bb8c23504ee75ad8fb2e202a6758a (patch) | |
tree | bd4fd42371c80e747220ab25fc01cd09dc59b41d /lib/cosEvent/src/oe_CosEventComm_PullerS_impl.erl | |
parent | 2e90dc9905de1e2817377fc2cfbd712ad8c802d0 (diff) | |
download | otp-1e115b3e972bb8c23504ee75ad8fb2e202a6758a.tar.gz otp-1e115b3e972bb8c23504ee75ad8fb2e202a6758a.tar.bz2 otp-1e115b3e972bb8c23504ee75ad8fb2e202a6758a.zip |
[orber, cos*] Remove usage of erlang:now()
Diffstat (limited to 'lib/cosEvent/src/oe_CosEventComm_PullerS_impl.erl')
-rw-r--r-- | lib/cosEvent/src/oe_CosEventComm_PullerS_impl.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/cosEvent/src/oe_CosEventComm_PullerS_impl.erl b/lib/cosEvent/src/oe_CosEventComm_PullerS_impl.erl index 5f2733e72d..9c22eafaab 100644 --- a/lib/cosEvent/src/oe_CosEventComm_PullerS_impl.erl +++ b/lib/cosEvent/src/oe_CosEventComm_PullerS_impl.erl @@ -2,7 +2,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2001-2009. All Rights Reserved. +%% Copyright Ericsson AB 2001-2015. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -251,7 +251,8 @@ send_sync(_OE_This, _OE_From, State, Any) -> store_event(DB, Max, Event) -> case ets:info(DB, size) of CurrentSize when CurrentSize < Max -> - ets:insert(DB, {now(), Event}); + ets:insert(DB, {{erlang:system_time(), erlang:unique_integer([positive])}, + Event}); _ -> orber:dbg("[~p] oe_CosEventComm_PullerS:store_event(~p); DB full drop event.", [?LINE, Event], ?DEBUG_LEVEL), |