We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d08ed5 commit 601ecf5Copy full SHA for 601ecf5
eeps/eep-0079.md
@@ -48,7 +48,7 @@ loop(State) ->
48
{get_avg, From} ->
49
From ! State#state.avg, loop();
50
{get_values, From} ->
51
- From ! State#state.avg, loop(State#state{values = [], avg = 0.0});
+ From ! State#state.values, loop(State#state{values = [], avg = 0.0});
52
{put_value, Value} ->
53
Values = [Value | State#state.values],
54
loop(State#state{values = Values, avg = lists:sum(Values) / length(Values)})
0 commit comments