#232 continued work on flow monitor, added SPS display

This commit is contained in:
Mikayla Fischler
2023-08-10 23:31:38 -04:00
parent e0809f52a6
commit d85385c1fe
3 changed files with 75 additions and 36 deletions

View File

@@ -83,9 +83,7 @@ local function new_view(root, x, y, data, ps, id)
local function calc_saturation(val)
if (type(data.build) == "table") and (type(data.build.transfer_cap) == "number") and (data.build.transfer_cap > 0) then
return val / data.build.transfer_cap
else
return 0
end
else return 0 end
end
charge.register(ps, "energy_fill", charge.update)