Use UInt32

This commit is contained in:
Uku Taht 2021-03-24 11:52:32 +02:00
parent fb64345e92
commit 2e16cdb15b

View File

@ -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