summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2013-05-30 17:47:14 +0100
committerSimon MacMullen <simon@rabbitmq.com>2013-05-30 17:47:14 +0100
commitb332e0770d2a5fa02bcf6ac7c0fc26dffbe3b5aa (patch)
tree426d8693604ce6ea296c4f9c10d531e3439a9985 /src
parent52cdd4781d429d257979c8cb7f37b5da91c65f9e (diff)
downloadrabbitmq-server-git-b332e0770d2a5fa02bcf6ac7c0fc26dffbe3b5aa.tar.gz
Use os:timestamp/0
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_event.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rabbit_event.erl b/src/rabbit_event.erl
index a91a991610..3d71b58d8c 100644
--- a/src/rabbit_event.erl
+++ b/src/rabbit_event.erl
@@ -141,8 +141,6 @@ notify_if(true, Type, Props) -> notify(Type, Props);
notify_if(false, _Type, _Props) -> ok.
notify(Type, Props) ->
- %% TODO: switch to os:timestamp() when we drop support for
- %% Erlang/OTP < R13B01
gen_event:notify(?MODULE, #event{type = Type,
props = Props,
- timestamp = now()}).
+ timestamp = os:timestamp()}).