couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [10/11] couch commit: updated refs/heads/master to 7ab7995
Date Wed, 21 May 2014 16:53:25 GMT
Use `os:timestamp/0 instead of `erlang:now/0`

We don't need the guarantees of `erlang:now/0` in `make_cookie_time/0`,
so `os:timestamp/0` is just fine.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/9044eace
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/9044eace
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/9044eace

Branch: refs/heads/master
Commit: 9044eace7962e6229b74fea1643752caf2d03603
Parents: 340313d
Author: Klaus Trainer <klaus_trainer@apache.org>
Authored: Fri Mar 7 00:17:08 2014 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Wed May 21 15:17:18 2014 +0100

----------------------------------------------------------------------
 src/couch_httpd_auth.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/9044eace/src/couch_httpd_auth.erl
----------------------------------------------------------------------
diff --git a/src/couch_httpd_auth.erl b/src/couch_httpd_auth.erl
index 43d647d..57bedf4 100644
--- a/src/couch_httpd_auth.erl
+++ b/src/couch_httpd_auth.erl
@@ -395,7 +395,7 @@ auth_name(String) when is_list(String) ->
     ?l2b(Name).
 
 make_cookie_time() ->
-    {NowMS, NowS, _} = erlang:now(),
+    {NowMS, NowS, _} = os:timestamp(),
     NowMS * 1000000 + NowS.
 
 cookie_scheme(#httpd{mochi_req=MochiReq}) ->


Mime
View raw message