This commit is contained in:
2024-08-25 23:05:38 +03:00
parent cfc3374897
commit 7e5b7503d2
2 changed files with 8 additions and 5 deletions

View File

@@ -56,9 +56,10 @@ end
function updater:check(branch)
local curr = os.time();
if not ((math.abs(curr - self.last_check) >= self.threshold) and (self.curr_commit_hash ~= "")) then
-- log.debug("Not time for an update yet");
return false;
if math.abs(curr - self.last_check) < self.threshold then
if self.curr_commit_hash ~= "" then
return false;
end
end
self.last_check = curr;