From f41e343970a70a68f43b188f2c21f9e359ca3dfa Mon Sep 17 00:00:00 2001 From: MCorange Date: Sun, 25 Aug 2024 22:39:46 +0300 Subject: [PATCH] :3 --- rtmc.lua | 3 +-- src/updater.lua | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/rtmc.lua b/rtmc.lua index d211138..047082f 100644 --- a/rtmc.lua +++ b/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; diff --git a/src/updater.lua b/src/updater.lua index 2bf2599..e6e2354 100644 --- a/src/updater.lua +++ b/src/updater.lua @@ -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;