From 5d5565a5513064ca9a7b6020650b82d84e6fbaf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 13 Mar 2019 10:45:35 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=A5=E5=91=8A=E9=A2=91=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/service.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/src/service.lua') 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 -- cgit v1.2.3