From c18e7ef4d0f0a65c6f0a314807888632bd94ad70 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Thu, 16 Feb 2023 20:48:40 -0500 Subject: [PATCH] display turbine generation as rate instead of charge --- coordinator/startup.lua | 2 +- coordinator/ui/components/turbine.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/coordinator/startup.lua b/coordinator/startup.lua index 51d8b6a..639a47b 100644 --- a/coordinator/startup.lua +++ b/coordinator/startup.lua @@ -19,7 +19,7 @@ local iocontrol = require("coordinator.iocontrol") local renderer = require("coordinator.renderer") local sounder = require("coordinator.sounder") -local COORDINATOR_VERSION = "beta-v0.9.14" +local COORDINATOR_VERSION = "beta-v0.9.15" local print = util.print local println = util.println diff --git a/coordinator/ui/components/turbine.lua b/coordinator/ui/components/turbine.lua index db6959c..ef09cee 100644 --- a/coordinator/ui/components/turbine.lua +++ b/coordinator/ui/components/turbine.lua @@ -26,7 +26,7 @@ local function new_view(root, x, y, ps) local lu_col = cpair(colors.gray, colors.gray) local status = StateIndicator{parent=turbine,x=7,y=1,states=style.turbine.states,value=1,min_width=12} - local prod_rate = PowerIndicator{parent=turbine,x=5,y=3,lu_colors=lu_col,label="",format="%10.2f",value=0,width=16,fg_bg=text_fg_bg} + local prod_rate = PowerIndicator{parent=turbine,x=5,y=3,lu_colors=lu_col,label="",format="%10.2f",value=0,rate=true,width=16,fg_bg=text_fg_bg} local flow_rate = DataIndicator{parent=turbine,x=5,y=4,lu_colors=lu_col,label="",unit="mB/t",format="%10.0f",value=0,commas=true,width=16,fg_bg=text_fg_bg} ps.subscribe("computed_status", status.update)