aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-05-14 18:50:43 +0200
committerLoïc Hoguin <[email protected]>2011-05-14 18:50:43 +0200
commit9f06bac7bff3c8a8edbd90e3de80792c45c03578 (patch)
tree70e161213d5f36c207f4a828488263a77e2bfd49 /src
parentc7069e7fb90470929bce9757615b317f409b205d (diff)
downloadcowboy-9f06bac7bff3c8a8edbd90e3de80792c45c03578.tar.gz
cowboy-9f06bac7bff3c8a8edbd90e3de80792c45c03578.tar.bz2
cowboy-9f06bac7bff3c8a8edbd90e3de80792c45c03578.zip
Only try to update the Date field once every seconds.
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_clock.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_clock.erl b/src/cowboy_clock.erl
index 0733741..6d8d8f9 100644
--- a/src/cowboy_clock.erl
+++ b/src/cowboy_clock.erl
@@ -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}}.