mirror of
https://github.com/plausible/analytics.git
synced 2024-12-25 10:33:01 +03:00
Use UInt32
This commit is contained in:
parent
fb64345e92
commit
2e16cdb15b
@ -19,13 +19,13 @@ defmodule Plausible.Stats.Fragments do
|
|||||||
|
|
||||||
defmacro bounce_rate() do
|
defmacro bounce_rate() do
|
||||||
quote do
|
quote do
|
||||||
fragment("toUInt64(round(sum(is_bounce * sign) / sum(sign) * 100))")
|
fragment("toUInt32(round(sum(is_bounce * sign) / sum(sign) * 100))")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
defmacro visit_duration() do
|
defmacro visit_duration() do
|
||||||
quote do
|
quote do
|
||||||
fragment("toUInt64(round(avg(duration * sign)))")
|
fragment("toUInt32(round(avg(duration * sign)))")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user