fix all()

This commit is contained in:
Ery Lee 2015-03-08 17:06:31 +08:00
parent a04d127d01
commit 2aaf5741ca
1 changed files with 1 additions and 1 deletions

View File

@ -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)).