Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit 49612aa

Browse files
committed
fix bug
1 parent 2b59b5f commit 49612aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vm_memory_monitor.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ get_memory_use(ratio) ->
143143
-spec get_process_memory() -> Bytes :: integer().
144144
get_process_memory() ->
145145
try
146-
get_memory_use(bytes)
146+
{ProcMem, _} = get_memory_use(bytes),
147+
ProcMem
147148
catch exit:{noproc, Error} ->
148149
rabbit_log:warning("Memory monitor process not yet started: ~p~n", [Error]),
149150
get_process_memory_uncached()

0 commit comments

Comments
 (0)