From 2e16cdb15be146e7e7d357022d4de551adebe733 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Wed, 24 Mar 2021 11:52:32 +0200 Subject: [PATCH] Use UInt32 --- lib/plausible/stats/fragments.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plausible/stats/fragments.ex b/lib/plausible/stats/fragments.ex index afa9c8f6d..0612bdbc6 100644 --- a/lib/plausible/stats/fragments.ex +++ b/lib/plausible/stats/fragments.ex @@ -19,13 +19,13 @@ defmodule Plausible.Stats.Fragments do defmacro bounce_rate() 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 defmacro visit_duration() do quote do - fragment("toUInt64(round(avg(duration * sign)))") + fragment("toUInt32(round(avg(duration * sign)))") end end