summaryrefslogtreecommitdiff
path: root/server/src/service.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-13 10:45:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-13 10:45:35 +0800
commit5d5565a5513064ca9a7b6020650b82d84e6fbaf4 (patch)
tree21e93d67c330d1b3254d132a3c096229e26837b8 /server/src/service.lua
parentace1606ad0829e4b4b322f32eb02ca3a4b7ede7d (diff)
downloadlua-language-server-5d5565a5513064ca9a7b6020650b82d84e6fbaf4.zip
修改报告频率
Diffstat (limited to 'server/src/service.lua')
-rw-r--r--server/src/service.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/service.lua b/server/src/service.lua
index 7350ed95..5e936293 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -41,7 +41,7 @@ function mt:_callMethod(name, params)
local clock = os.clock()
local suc, res = xpcall(f, debug.traceback, self, params)
local passed = os.clock() - clock
- if passed > 0.1 then
+ if passed > 0.2 then
log.debug(('Task [%s] takes [%.3f]sec.'):format(name, passed))
end
if suc then
@@ -531,7 +531,7 @@ function mt:onTick()
self:_loadProto()
self:_doCompileTask()
- if os.clock() - self._clock >= 600 then
+ if os.clock() - self._clock >= 60 then
self._clock = os.clock()
local count = 0
for _ in pairs(self._file) do