mirror of
https://github.com/plausible/analytics.git
synced 2024-12-24 01:54:34 +03:00
fix bounce_rate change bug (#3886)
This commit is contained in:
parent
7641c66a2b
commit
6eef32a8ff
@ -4,7 +4,9 @@ defmodule Plausible.Stats.Compare do
|
||||
end
|
||||
|
||||
def calculate_change(:bounce_rate, old_count, new_count) do
|
||||
if old_count > 0, do: new_count - old_count
|
||||
if is_integer(old_count) && is_integer(new_count) && old_count > 0 do
|
||||
new_count - old_count
|
||||
end
|
||||
end
|
||||
|
||||
def calculate_change(_metric, old_count, new_count) do
|
||||
|
Loading…
Reference in New Issue
Block a user