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")

View File

@ -19,7 +19,7 @@ local renderer = require("coordinator.renderer")
local sounder = require("coordinator.sounder")
local threads = require("coordinator.threads")
local COORDINATOR_VERSION = "v1.4.4"
local COORDINATOR_VERSION = "v1.4.5"
local CHUNK_LOAD_DELAY_S = 30.0