Merge pull request #10690 from NullSnapshot/hotfix

Bandaid fix for process scheduler bloating status tab
This commit is contained in:
Zuhayr
2015-08-16 23:54:34 -07:00
+11 -10
View File
@@ -639,19 +639,20 @@
if(.)
if(statpanel("Status") && ticker && ticker.current_state != GAME_STATE_PREGAME)
statpanel("Status", "Station Time", worldtime2text())
statpanel("Status", "Round Duration", round_duration())
stat("Station Time", worldtime2text())
stat("Round Duration", round_duration())
if(client.holder)
if(statpanel("Status"))
statpanel("Status","Location:","([x], [y], [z])")
statpanel("Status","CPU:","[world.cpu]")
statpanel("Status","Instances:","[world.contents.len]")
if(statpanel("Status") && processScheduler && processScheduler.getIsRunning())
for(var/datum/controller/process/P in processScheduler.processes)
statpanel("Status",P.getStatName(), P.getTickTime())
else
statpanel("Status","processScheduler is not running.")
stat("Location:","([x], [y], [z])")
if(statpanel("Processes"))
stat("CPU:","[world.cpu]")
stat("Instances:","[world.contents.len]")
if(processScheduler && processScheduler.getIsRunning())
for(var/datum/controller/process/P in processScheduler.processes)
stat(P.getStatName(), P.getTickTime())
else
stat("processScheduler is not running.")
if(listed_turf && client)
if(!TurfAdjacent(listed_turf))