fix all()
This commit is contained in:
parent
a04d127d01
commit
2aaf5741ca
|
@ -73,7 +73,7 @@ all() ->
|
|||
fun({{Metric, _N}, Val}, Map) ->
|
||||
case maps:find(Metric, Map) of
|
||||
{ok, Count} -> maps:put(Metric, Count+Val, Map);
|
||||
error -> maps:put(Metric, 0, Map)
|
||||
error -> maps:put(Metric, Val, Map)
|
||||
end
|
||||
end, #{}, ?TABLE)).
|
||||
|
||||
|
|
Loading…
Reference in New Issue