mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Only try to update the Date field once every seconds.
This commit is contained in:
parent
c7069e7fb9
commit
9f06bac7bf
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ init([]) ->
|
|||
named_table, {read_concurrency, true}]),
|
||||
T = erlang:universaltime(),
|
||||
B = update_rfc1123(undefined, T, <<>>),
|
||||
{ok, TRef} = timer:send_interval(10, update),
|
||||
{ok, TRef} = timer:send_interval(1000, update),
|
||||
ets:insert(?TABLE, {rfc1123, B}),
|
||||
{ok, #state{universaltime=T, rfc1123=B, tref=TRef}}.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue