testing version of LuaBIOS and OpenOS

people were having issues getting them to work so now we promote consistency
This commit is contained in:
2025-06-28 20:41:49 +02:00
parent 8210e20939
commit 687cfebd00
182 changed files with 14016 additions and 1 deletions

8
data/OpenOS/bin/free.lua Normal file
View File

@@ -0,0 +1,8 @@
local computer = require("computer")
local total = computer.totalMemory()
local max = 0
for _=1,40 do
max = math.max(max, computer.freeMemory())
os.sleep(0) -- invokes gc
end
io.write(string.format("Total%12d\nUsed%13d\nFree%13d\n", total, total - max, max))