Skip to content

Commit 25f3e8a

Browse files
committed
Added memory check program: mem.lua
For miniOS AND OpenOS!
1 parent 35c0751 commit 25f3e8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mem.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
local c=require("computer")
2+
print(math.floor(c.totalMemory()/1024).."k RAM, "..math.floor(c.freeMemory()/1024).."k Free")

0 commit comments

Comments
 (0)