You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ii...@apache.org on 2019/06/26 18:54:32 UTC

[couchdb-ioq] branch ioq_update_hist created (now b1ce76d)

This is an automated email from the ASF dual-hosted git repository.

iilyak pushed a change to branch ioq_update_hist
in repository https://gitbox.apache.org/repos/asf/couchdb-ioq.git.


      at b1ce76d  Log from 0 is undefined

This branch includes the following new commits:

     new b1ce76d  Log from 0 is undefined

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[couchdb-ioq] 01/01: Log from 0 is undefined

Posted by ii...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

iilyak pushed a commit to branch ioq_update_hist
in repository https://gitbox.apache.org/repos/asf/couchdb-ioq.git

commit b1ce76d63babeaeca2fa27a4bb0499344147a163
Author: ILYA Khlopotov <ii...@apache.org>
AuthorDate: Wed Jun 26 18:53:34 2019 +0000

    Log from 0 is undefined
---
 src/ioq_server.erl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/ioq_server.erl b/src/ioq_server.erl
index e33c2fc..fce5071 100644
--- a/src/ioq_server.erl
+++ b/src/ioq_server.erl
@@ -474,6 +474,8 @@ upsert(Tab, Key, Incr) ->
         ets:insert(Tab, {Key, Incr})
     end.
 
+timebin(0) ->
+    0;
 timebin(V) ->
     trunc(10*math:log10(V)).