Merge pull request #8098 from HJianBo/fix-bad-match

fix: fix badmatch for emqx_os_mon:update_mem_alarm_status/1
This commit is contained in:
JianBo He 2022-05-31 20:48:31 +08:00 committed by GitHub
commit f6bff4ebdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -193,7 +193,8 @@ update_mem_alarm_status(HWM) when HWM > 1.0 orelse HWM < 0.0 ->
);
update_mem_alarm_status(HWM) ->
is_sysmem_check_supported() andalso
do_update_mem_alarm_status(HWM).
do_update_mem_alarm_status(HWM),
ok.
do_update_mem_alarm_status(HWM0) ->
HWM = HWM0 * 100,