diff --git a/supervisor/facility.lua b/supervisor/facility.lua index 937a8e7..efbc7d5 100644 --- a/supervisor/facility.lua +++ b/supervisor/facility.lua @@ -343,7 +343,9 @@ function facility.new(config, cooling_conf) self.avg_charge.reset(energy) self.avg_inflow.reset(input) self.avg_outflow.reset(output) + self.avg_net.reset() + self.imtx_last_capacity = db.build.max_energy self.imtx_last_charge = energy self.imtx_last_charge_t = charge_update end diff --git a/supervisor/session/plc.lua b/supervisor/session/plc.lua index e058816..a863fe2 100644 --- a/supervisor/session/plc.lua +++ b/supervisor/session/plc.lua @@ -183,7 +183,7 @@ function plc.new_session(id, s_addr, reactor_id, in_queue, out_queue, timeout, f self.sDB.max_op_temp_H2O = max_burn * 2 * (JOULES_PER_MB * heat_cap ^ -1) + BASE_BOIL_TEMP self.sDB.max_op_temp_Na = max_burn * (JOULES_PER_MB * heat_cap ^ -1) + BASE_BOIL_TEMP - log.info(util.sprintf(log_header .. "computed maximum operational temperatures %.3f (H2O) and %.3f (Na)", + log.info(util.sprintf(log_header .. "computed maximum operational temperatures %.3fK (H2O) and %.3fK (Na)", self.sDB.max_op_temp_H2O, self.sDB.max_op_temp_Na)) end diff --git a/supervisor/startup.lua b/supervisor/startup.lua index d15ddc5..0c78ff7 100644 --- a/supervisor/startup.lua +++ b/supervisor/startup.lua @@ -21,7 +21,7 @@ local supervisor = require("supervisor.supervisor") local svsessions = require("supervisor.session.svsessions") -local SUPERVISOR_VERSION = "v1.3.8" +local SUPERVISOR_VERSION = "v1.3.9" local println = util.println local println_ts = util.println_ts