Remove runtime condensing (#1999)

It's a crash hazard. To be offloaded to the monitor.
This commit is contained in:
skull132
2017-03-26 16:46:09 +03:00
committed by GitHub
parent 7e1f0d2285
commit 3d8840474b
-20
View File
@@ -212,26 +212,6 @@ var/list/world_api_rate_limit = list()
processScheduler.stop()
// Handle runtime condensing here
if (config.log_runtime)
// 0x20 = R_DEBUG. world.dm is compiled at the very start, so the macros aren't declared here yet.
admin_notice("<span class='danger'>Starting to condense runtimes.</span>", 0x20)
var/input_file = "data/logs/_runtime/[diary_date_string]-runtime.log"
var/output_file = "data/logs/_runtime/[diary_date_string]-runtime-condensed.log"
var/command = "tools/Runtime Condenser/RuntimeCondenser.exe -q -s [input_file] -d [output_file]"
if (src.system_type == MS_WINDOWS)
command = replacetext(command, "/", "\\")
var/exit_code = shell(command)
if (exit_code)
log_debug("RuntimeCondenser.exe exited with error code [exit_code].")
admin_notice("<span class='danger'>Runtime condensing finished.</span>", 0x20)
// Sleep until the next tick before proceeding.
sleep(1)
if(config.server) //if you set a server location in config.txt, it sends you there instead of trying to reconnect to the same world address. -- NeoFite
for(var/client/C in clients)
C << link("byond://[config.server]")