added different stats messages

This commit is contained in:
Jeena Paradies 2011-04-26 16:56:58 +02:00
parent 6271af5777
commit 612811614a
2 changed files with 6 additions and 4 deletions

@ -1 +1 @@
Subproject commit 030e0ecafff27fff8e6918add47dfcdeec363e7c
Subproject commit 00312859714bef6e9a4fdb9931a41fef56eeb89a

View file

@ -46,12 +46,14 @@ handle_cast({add_one, Type}, St) ->
end,
{noreply, NewSt};
handle_cast(print, St) ->
erlang:display(St#ate.count),
handle_cast(print, #ate { server_messages = SM, client_messages = CM } = St) ->
CS = length(ggs_coordinator:get_all_players()),
format:print("CS:~i | CM:~i | SM:~i~n", [CS, SM, CM]),
{noreply, St};
handle_cast(tick, _St) ->
NewSt = #ate { count = 0 },
NewSt = #ate { server_messages = 0,
client_messages = 0 },
{noreply, NewSt}.