2017-04-20 17:44:15 +10:00
|
|
|
function ps()
|
|
|
|
for k,v in pairs(tT) do
|
2017-05-15 21:14:44 +10:00
|
|
|
write("pid: "..tostring(k)..", process name: "..tostring(v[1])..", env={")
|
2017-05-16 02:36:16 +10:00
|
|
|
for l,w in pairs(v[3]) do write(tostring(l).." = "..tostring(w)..", ") end
|
2017-05-15 21:14:44 +10:00
|
|
|
print("}")
|
2017-04-20 17:44:15 +10:00
|
|
|
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
|