couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vatam...@apache.org
Subject [couchdb] branch 63012-scheduler updated: [fixup] Use div instead of / in rate limiter
Date Fri, 07 Apr 2017 22:00:13 GMT
This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch 63012-scheduler
in repository https://gitbox.apache.org/repos/asf/couchdb.git

The following commit(s) were added to refs/heads/63012-scheduler by this push:
       new  c77bb95   [fixup] Use div instead of / in rate limiter
c77bb95 is described below

commit c77bb9592fe465c0c0ad6e143b50f8f4225cba66
Author: Nick Vatamaniuc <vatamane@apache.org>
AuthorDate: Fri Apr 7 18:00:08 2017 -0400

    [fixup] Use div instead of / in rate limiter
---
 src/couch_replicator/src/couch_replicator_rate_limiter.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/couch_replicator/src/couch_replicator_rate_limiter.erl b/src/couch_replicator/src/couch_replicator_rate_limiter.erl
index f4ae8d2..f01f7f9 100644
--- a/src/couch_replicator/src/couch_replicator_rate_limiter.erl
+++ b/src/couch_replicator/src/couch_replicator_rate_limiter.erl
@@ -264,7 +264,7 @@ new_timer() ->
 -spec now_msec() -> msec().
 now_msec() ->
     {Mega, Sec, Micro} = os:timestamp(),
-    ((Mega * 1000000) + Sec) * 1000 + round(Micro / 1000).
+    ((Mega * 1000000) + Sec) * 1000 + Micro div 1000.
 
 
 -spec cleanup_table(atom(), msec()) -> non_neg_integer().

-- 
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <commits@couchdb.apache.org>'].

Mime
View raw message