From f958b0e3b787ed2289d88fb9778611223c2947b2 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Tue, 30 Apr 2024 20:27:04 -0400 Subject: [PATCH] fixed at max i/o indicator --- coordinator/iocontrol.lua | 3 ++- coordinator/startup.lua | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/coordinator/iocontrol.lua b/coordinator/iocontrol.lua index 5edd724..9aa3dbc 100644 --- a/coordinator/iocontrol.lua +++ b/coordinator/iocontrol.lua @@ -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") diff --git a/coordinator/startup.lua b/coordinator/startup.lua index b3df178..f4de35d 100644 --- a/coordinator/startup.lua +++ b/coordinator/startup.lua @@ -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