diff --git a/Programs/monitor-system/domain/energy/get-energy-status-usecase.lua b/Programs/monitor-system/domain/energy/get-energy-status-usecase.lua index 804666c..a726861 100755 --- a/Programs/monitor-system/domain/energy/get-energy-status-usecase.lua +++ b/Programs/monitor-system/domain/energy/get-energy-status-usecase.lua @@ -17,7 +17,7 @@ local function exec(address, name) local state = {} if (currentEnergy == maximumEnergy) then - state = {name = changeRate .. " EU/s", color = Colors.workingColor} + state = {name = (changeRate > 0 and "+" or "") .. changeRate .. " EU/s", color = Colors.workingColor} elseif currentEnergy == 0 then state = {name = changeRate .. " EU/s", color = Colors.errorColor} elseif changeRate > 0 then diff --git a/Programs/monitor-system/init.lua b/Programs/monitor-system/init.lua index 70d9d96..5ae180c 100755 --- a/Programs/monitor-system/init.lua +++ b/Programs/monitor-system/init.lua @@ -66,7 +66,7 @@ Page.setup(energyBufferAddresses.batteryBuffer1) while true do Page.update() - os.sleep(0.2) + os.sleep(0) end --[[ diff --git a/setup.lua b/setup.lua index a504e67..88691ba 100644 --- a/setup.lua +++ b/setup.lua @@ -27,6 +27,7 @@ shell.execute("tar -xf InfOS.tar") shell.execute("rm -f InfOS.tar") shell.setWorkingDirectory("/home/") +shell.execute("cp -ru InfOS/Libraries lib") shell.execute("rm -f .shrc") shell.execute("cp InfOS/.shrc .shrc") shell.execute("rm -f setup.lua")