fixed at max i/o indicator

This commit is contained in:
Mikayla Fischler
2024-04-30 20:27:04 -04:00
parent f621ff2482
commit f958b0e3b7
2 changed files with 3 additions and 2 deletions

View File

@@ -684,7 +684,8 @@ function iocontrol.update_facility_status(status)
ps.publish("is_discharging", out_f > in_f)
if data and data.build then
ps.publish("at_max_io", in_f >= data.build.transfer_cap or out_f >= data.build.transfer_cap)
local cap = util.joules_to_fe(data.build.transfer_cap)
ps.publish("at_max_io", in_f >= cap or out_f >= cap)
end
else
log.debug(log_header .. "power statistics list not a table")