From dd76bdd2fe84d4f24362463aeadb14f2ba602124 Mon Sep 17 00:00:00 2001 From: JianBo He Date: Wed, 13 Apr 2022 16:40:44 +0800 Subject: [PATCH] chore: Update src/emqx_os_mon.erl --- src/emqx_os_mon.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emqx_os_mon.erl b/src/emqx_os_mon.erl index 4e57c59ec..5e580e032 100644 --- a/src/emqx_os_mon.erl +++ b/src/emqx_os_mon.erl @@ -190,7 +190,7 @@ ensure_system_memory_alarm(HW) -> case erlang:whereis(memsup) of undefined -> ok; _Pid -> - {Allocated, Total, _Worst} = memsup:get_memory_data(), + {Total, Allocated, _Worst} = memsup:get_memory_data(), case Total =/= 0 andalso Allocated/Total * 100 >= HW of true -> emqx_alarm:activate(high_system_memory_usage, #{high_watermark => HW}); false -> ok