[MIRROR] Changes a line of the master controller to make it easier to read (#6699)

* Changes a line of the master controller to make it easier to read (#59974)

* Changes a line of the master controller to make it easier to read

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-07-04 16:30:35 +01:00
committed by GitHub
co-authored by LemonInTheDark
parent be43a452da
commit 2d4ee5459b
+2 -1
View File
@@ -480,7 +480,8 @@ GLOBAL_REAL(Master, /datum/controller/master) = new
tick_remaining = TICK_LIMIT_RUNNING - TICK_USAGE
if (current_tick_budget > 0 && queue_node_priority > 0)
tick_precentage = tick_remaining / (current_tick_budget / queue_node_priority)
//Give the subsystem a precentage of the remaining tick based on the remaning priority
tick_precentage = tick_remaining * (queue_node_priority / current_tick_budget)
else
tick_precentage = tick_remaining