diff options
Diffstat (limited to 'server/src/service.lua')
-rw-r--r-- | server/src/service.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/server/src/service.lua b/server/src/service.lua index ba45f9f4..8b07aa33 100644 --- a/server/src/service.lua +++ b/server/src/service.lua @@ -561,6 +561,17 @@ function mt:onTick() alive, dead )) + + --TODO source测试 + local total = 0 + local alive = 0 + for source in pairs(CachedSource) do + if not source:isDead() then + alive = alive + 1 + end + total = total + 1 + end + log.debug(('CachedSource: %d/%d'):format(alive, total)) end end |