summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/invidious/helpers/signatures.cr4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/invidious/helpers/signatures.cr b/src/invidious/helpers/signatures.cr
index 84a8a86d..82a28fc0 100644
--- a/src/invidious/helpers/signatures.cr
+++ b/src/invidious/helpers/signatures.cr
@@ -10,10 +10,8 @@ class Invidious::DecryptFunction
end
def check_update
- now = Time.utc
-
# If we have updated in the last 5 minutes, do nothing
- return if (now - @last_update) > 5.minutes
+ return if (Time.utc - @last_update) < 5.minutes
# Get the amount of time elapsed since when the player was updated, in the
# event where multiple invidious processes are run in parallel.