From 1b7b0a17b77029573dc9d4fbe824c895c4b032d8 Mon Sep 17 00:00:00 2001 From: itzmarkoni Date: Sat, 14 Jun 2025 13:06:15 -0400 Subject: [PATCH] updated --- coolant_driver.lua | 3 ++- main.lua | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/coolant_driver.lua b/coolant_driver.lua index a4f4baf..7cb8e85 100644 --- a/coolant_driver.lua +++ b/coolant_driver.lua @@ -1,12 +1,13 @@ local function report(reactor) if reactor then - return reactor.getCoolantFilledPercentage() + return (reactor.getCoolantFilledPercentage() or 0) * 100 else return "No reactor found" end end local function watch(reactor, monitor) + local coolantLevel = print("Coolant: " .. report(reactor)) sleep(1) end diff --git a/main.lua b/main.lua index 38b74ff..bd83abc 100644 --- a/main.lua +++ b/main.lua @@ -8,7 +8,6 @@ local function runMonitors() while true do tempDriver.watch(reactor, monitor) coolantDriver.watch(reactor, monitor) - sleep(1) end end @@ -26,8 +25,6 @@ local function runDisplay() monitor.write(item.Label .. ": " .. item.value) monitor.setCursorPos(1, i + 1) end - - sleep(1) end end