summaryrefslogtreecommitdiff
path: root/script/await.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-05 23:03:16 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-05 23:03:16 +0800
commitc0cf9ae2835f9a19fe6a9af743ddd24be7c3a123 (patch)
tree503bec02eaffff462aa23f5cbb92af2983a6036c /script/await.lua
parent8422502419f2a5138c2772aea60111fa7e9599aa (diff)
downloadlua-language-server-c0cf9ae2835f9a19fe6a9af743ddd24be7c3a123.zip
#1018 cleanup logs
Diffstat (limited to 'script/await.lua')
-rw-r--r--script/await.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/await.lua b/script/await.lua
index 4fdab0a2..4fb81cd8 100644
--- a/script/await.lua
+++ b/script/await.lua
@@ -185,7 +185,7 @@ function m.stop()
end
local function warnStepTime(passed, waker)
- if passed < 1 then
+ if passed < 2 then
log.warn(('Await step takes [%.3f] sec.'):format(passed))
return
end
@@ -215,7 +215,7 @@ function m.step()
local clock = os.clock()
resume()
local passed = os.clock() - clock
- if passed > 0.1 then
+ if passed > 0.5 then
warnStepTime(passed, resume)
end
return true