X-Git-Url: https://git.xandkar.net/?p=cellular-automata.git;a=blobdiff_plain;f=001%2Fsrc%2Flife_cell.erl;h=6f477cf5edd1aba9e47bc49a9938a101913047c9;hp=227f673788fcd0dccaef23fe4b0ce4338c7bd60b;hb=982ec72043e6de6b6b22e49acb3fe13f1f54bc93;hpb=186887fd5b14774031bd437936418453b5a0c843 diff --git a/001/src/life_cell.erl b/001/src/life_cell.erl index 227f673..6f477cf 100644 --- a/001/src/life_cell.erl +++ b/001/src/life_cell.erl @@ -1,4 +1,4 @@ --module(cell). +-module(life_cell). -behaviour(gen_server). @@ -95,7 +95,7 @@ handle_cast({response_state, NeighborState}, case NewPending of 0 -> NewCellState = new_state(CellState, NewLiveNeighbors), - ok = time:tock(ID, NewCellState), + ok = life_time:tock(ID, NewCellState), {noreply, NewState#state{live_neighbors=0 ,cell_state=NewCellState