diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2010-11-16 17:26:29 +0000 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2010-11-16 17:26:29 +0000 |
commit | 5d1217b70eb0d3450a17896d97cb449109681700 (patch) | |
tree | a57841c534787aeaa95d92c64bf5e751554a8e89 /src/rabbit_amqqueue_process.erl | |
parent | 96b148c4a8217d5e771978af3a31722953aec6d4 (diff) | |
download | rabbitmq-server-5d1217b70eb0d3450a17896d97cb449109681700.tar.gz |
Matthew points out that erlang:now() can be rewritten as now().bug23460
Diffstat (limited to 'src/rabbit_amqqueue_process.erl')
-rw-r--r-- | src/rabbit_amqqueue_process.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl index 183570a6..a999fe58 100644 --- a/src/rabbit_amqqueue_process.erl +++ b/src/rabbit_amqqueue_process.erl @@ -1058,8 +1058,7 @@ handle_pre_hibernate(State = #q{backing_queue = BQ, BQS2 = BQ:set_ram_duration_target(DesiredDuration, BQS1), rabbit_event:if_enabled(StatsTimer, fun () -> - emit_stats(State, - [{idle_since, erlang:now()}]) + emit_stats(State, [{idle_since, now()}]) end), State1 = State#q{stats_timer = rabbit_event:stop_stats_timer(StatsTimer), backing_queue_state = BQS2}, |