Added some basic utilities for use with the lua shell
This commit is contained in:
parent
9922be19ac
commit
90fb79010e
10
modules/applications/shutil.lua
Normal file
10
modules/applications/shutil.lua
Normal 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
|
Loading…
Reference in New Issue
Block a user