Skip to content
Permalink
Browse files
Merge pull request #15 from apache/ioq_update_hist
Log from 0 is undefined
  • Loading branch information
iilyak committed Jun 26, 2019
2 parents 8ada5fa + b1ce76d commit 5ff5921b2ced0ed91f10b8f992420cdec5bf7f18
Showing 1 changed file with 2 additions and 0 deletions.
@@ -474,6 +474,8 @@ upsert(Tab, Key, Incr) ->
ets:insert(Tab, {Key, Incr})
end.

timebin(0) ->
0;
timebin(V) ->
trunc(10*math:log10(V)).

0 comments on commit 5ff5921

Please sign in to comment.