Adds the garbage controller to the set of rebootable controllers

This commit is contained in:
Crazylemon64
2017-05-13 17:04:45 -07:00
parent 5ba67e0cf1
commit 3150419b74
2 changed files with 4 additions and 4 deletions

View File

@@ -1,10 +1,10 @@
var/global/datum/controller/process/garbage_collector/garbageCollector
/datum/controller/process/garbage_collector/setup()
name = "garbage"
schedule_interval = 10
start_delay = 3
garbageCollector = src
/datum/controller/process/garbage_collector/doWork()
// Garbage collection code can be found in code\modules\garbage collection\garbage_collector.dm
processGarbage()
@@ -13,3 +13,5 @@
..()
stat(null, "[del_everything ? "Off" : "On"], [queue.len] queued")
stat(null, "Dels: [dels_count], [soft_dels] soft, [hard_dels] hard")
DECLARE_GLOBAL_CONTROLLER(garbage_collector, garbageCollector)