Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #102 from tsloughter/master

replace now() with os:timestamp() in acceptor
  • Loading branch information...
commit a3962fff3141e71842023987d764e3a4bfbd0f51 2 parents 6c9be07 + a4ed248
@etrepum etrepum authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/mochiweb_acceptor.erl
View
4 src/mochiweb_acceptor.erl
@@ -14,10 +14,10 @@ start_link(Server, Listen, Loop) ->
proc_lib:spawn_link(?MODULE, init, [Server, Listen, Loop]).
init(Server, Listen, Loop) ->
- T1 = now(),
+ T1 = os:timestamp(),
case catch mochiweb_socket:accept(Listen) of
{ok, Socket} ->
- gen_server:cast(Server, {accepted, self(), timer:now_diff(now(), T1)}),
+ gen_server:cast(Server, {accepted, self(), timer:now_diff(os:timestamp(), T1)}),
call_loop(Loop, Socket);
{error, closed} ->
exit(normal);
Please sign in to comment.
Something went wrong with that request. Please try again.