summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michael@novemberain.com>2016-07-08 17:12:17 +0400
committerGitHub <noreply@github.com>2016-07-08 17:12:17 +0400
commitaeb5c6b6d3e376732e03d0788cd9c76e7a79e3c4 (patch)
treedaacef23411d2427c34e03577a74dc1407fe3bfc
parent6c135d9ff3adcaf6118eb0bf749e36317b666e42 (diff)
parent41dd04a2d1a83a50099ee1072ad0fd61a97281a4 (diff)
downloadrabbitmq-server-git-aeb5c6b6d3e376732e03d0788cd9c76e7a79e3c4.tar.gz
Merge pull request #877 from rabbitmq/rabbitmq-management-244
Use rabbit_misc to parse GC stats, supporting maps in R19
-rw-r--r--src/rabbit_amqqueue_process.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index 70b894428e..66df42987c 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -925,8 +925,7 @@ i(recoverable_slaves, #q{q = #amqqueue{name = Name,
i(state, #q{status = running}) -> credit_flow:state();
i(state, #q{status = State}) -> State;
i(garbage_collection, _State) ->
- {garbage_collection, GC} = erlang:process_info(self(), garbage_collection),
- GC;
+ rabbit_misc:get_gc_info(self());
i(reductions, _State) ->
{reductions, Reductions} = erlang:process_info(self(), reductions),
Reductions;