From 9ae18b0b3b3c8c10eaf52c86be929bf652dafe5b Mon Sep 17 00:00:00 2001 From: mark9064 <30447455+mark9064@users.noreply.github.com> Date: Sun, 28 Feb 2021 11:59:46 +0000 Subject: [PATCH] Fix engagement Engagement was calculated as 0-1 but displayed as a percentage --- src/invidious/videos.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index 95d9a80c8..e6d4c764a 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -764,7 +764,7 @@ struct Video end def engagement : Float64 - ((likes + dislikes) / views).round(4) + (((likes + dislikes) / views) * 100).round(4) end def reason : String?