Merge pull request #7301 from DDDHuang/bad_map_key

fix: dashboard monitor bad key spell
This commit is contained in:
DDDHuang 2022-03-14 22:04:05 +08:00 committed by GitHub
commit 910a0b9a77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ internal_format(#emqx_monit{time = Time, data = Data}) ->
count_map(M1, M2) ->
Fun =
fun(Key, Map) ->
Map#{key => maps:get(Key, M1) + maps:get(Key, M2)}
Map#{Key => maps:get(Key, M1) + maps:get(Key, M2)}
end,
lists:foldl(Fun, #{}, ?SAMPLER_LIST).