SigHelper: Fix inverted time comparison in 'check_update' (#4845)
Closes issue 4840
This commit is contained in:
commit
15669acccf
1 changed files with 1 additions and 3 deletions
|
@ -10,10 +10,8 @@ class Invidious::DecryptFunction
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_update
|
def check_update
|
||||||
now = Time.utc
|
|
||||||
|
|
||||||
# If we have updated in the last 5 minutes, do nothing
|
# 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
|
# Get the amount of time elapsed since when the player was updated, in the
|
||||||
# event where multiple invidious processes are run in parallel.
|
# event where multiple invidious processes are run in parallel.
|
||||||
|
|
Loading…
Reference in a new issue