:3
This commit is contained in:
parent
4161160ab6
commit
f41e343970
3
rtmc.lua
3
rtmc.lua
|
@ -342,7 +342,7 @@ rawset(__BUNDLER_FILES, "updater", function ()
|
|||
function updater.new()
|
||||
local c = setmetatable({}, updater);
|
||||
c.last_check = os.time();
|
||||
c.threshold = ((20*60)/24/60) * 5;
|
||||
c.threshold = ((20*60)/24/60/60) * 5;
|
||||
c.api_url = "https://git.mcorangehq.xyz/api/v1/repos/xomf/keypadOS";
|
||||
c.curr_commit_hash = "";
|
||||
c.updated_files = {};
|
||||
|
@ -372,7 +372,6 @@ rawset(__BUNDLER_FILES, "updater", function ()
|
|||
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;
|
||||
end
|
||||
self.last_check = curr;
|
||||
|
|
|
@ -18,7 +18,7 @@ updater.__index = updater;
|
|||
function updater.new()
|
||||
local c = setmetatable({}, updater);
|
||||
c.last_check = os.time();
|
||||
c.threshold = ((20*60)/24/60) * 5;
|
||||
c.threshold = ((20*60)/24/60/60) * 5;
|
||||
c.api_url = "https://git.mcorangehq.xyz/api/v1/repos/xomf/keypadOS";
|
||||
c.curr_commit_hash = "";
|
||||
c.updated_files = {};
|
||||
|
@ -51,7 +51,7 @@ 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");
|
||||
-- log.debug("Not time for an update yet");
|
||||
return false;
|
||||
end
|
||||
self.last_check = curr;
|
||||
|
|
Loading…
Reference in New Issue
Block a user