From 477876c1d89bc8e14cf72d053ade2358ab446d07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 9 Jul 2021 17:14:36 +0800 Subject: will not sleep anymore --- script/service/service.lua | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'script') diff --git a/script/service/service.lua b/script/service/service.lua index 8278bbbe..ed83a27a 100644 --- a/script/service/service.lua +++ b/script/service/service.lua @@ -160,17 +160,17 @@ function m.startTimer() end function m.pulse() - timer.loop(10, function () - if not m.workingClock and not m.sleeping and time.monotonic() - m.idleClock >= 300000 then - m.sleeping = true - files.flushCache() - vm.flushCache() - ws.flushCache() - collectgarbage() - collectgarbage() - end - m.reportStatus() - end) + --timer.loop(10, function () + -- if not m.workingClock and not m.sleeping and time.monotonic() - m.idleClock >= 300000 then + -- m.sleeping = true + -- files.flushCache() + -- vm.flushCache() + -- ws.flushCache() + -- collectgarbage() + -- collectgarbage() + -- end + -- m.reportStatus() + --end) timer.loop(0.1, function () m.reportStatus() end) -- cgit v1.2.3