Skip to content
Permalink
Browse files
Log from 0 is undefined
  • Loading branch information
iilyak committed Jun 26, 2019
1 parent 8ada5fa commit b1ce76d63babeaeca2fa27a4bb0499344147a163
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 b1ce76d

Please sign in to comment.