Added some basic utilities for use with the lua shell

This commit is contained in:
Izaya 2017-04-20 17:44:15 +10:00
parent 9922be19ac
commit 90fb79010e

View File

@ -0,0 +1,10 @@
function ps()
for k,v in pairs(tT) do
print(v[1])
end
end
function mem()
print("Total: "..tostring(computer.totalMemory()/1024).."K")
print("Free: "..tostring(computer.freeMemory()/1024).."K")
print("Used: "..tostring((computer.totalMemory()-computer.freeMemory())/1024).."K")
end