From: <ma...@us...> - 2003-03-26 09:06:42
|
Update of /cvsroot/jungerl/jungerl/lib/pan/src In directory sc8-pr-cvs1:/tmp/cvs-serv838 Modified Files: panHost.erl Log Message: panScan table bug fixed Index: panHost.erl =================================================================== RCS file: /cvsroot/jungerl/jungerl/lib/pan/src/panHost.erl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- panHost.erl 7 Mar 2003 15:39:23 -0000 1.2 +++ panHost.erl 26 Mar 2003 09:06:37 -0000 1.3 @@ -267,6 +267,7 @@ T = tuple_to_list(element(2,calendar:now_to_datetime(Now)))++[Usec], lists:flatten(io_lib:fwrite("~2.2.0w:~2.2.0w:~2.2.0w.~6.6.0w", T)). -ets_new(Tab) -> - catch ets:delete(Tab), - ets:new(Tab, [named_table,ordered_set,public]). +ets_new(Tab) -> ets_new(Tab, [ordered_set]). +ets_new(Tab, Attr) -> + panEts:server(delete, Tab), + panEts:server(new, {Tab, [named_table,public]++Attr}). |